QR to ADD to JOBS in script managment

All questions about Control-M jobs definitions
Post Reply
User avatar
philmalmaison
Nouveau
Nouveau
Posts: 1148
Joined: 08 Jun 2007 12:00
Location: Ile de France

QR to ADD to JOBS in script managment

Post by philmalmaison » 24 Apr 2008 4:03

hy,
does anybody know a way to update job definitions to add QR from a list of knew jobs, and without to have to use DESKTOP utility ?
(in a script)
thanks for answers
Regards
Phimalmaison

User avatar
ranger67
Nouveau
Nouveau
Posts: 52
Joined: 03 Jan 2008 12:00

Post by ranger67 » 24 Apr 2008 9:10

You could use something like this on an exported xml.


#!/usr/bin/perl
if (scalar(@ARGV) != 3 ) {
print "syntax incorrect: addquant qrname qrnumber filename\n";
exit(1);
}
unless ( open FILE, "< $ARGV[2]" ) {
print "file $ARGV[2] not found";
exit(1);
}
$qr=uc($ARGV[0]);
@line=<FILE>;
foreach $line (@line) {
print $line;
if ( $line =~ /^>/ ) {
print " <QUANTITATIVE>";
print "\r\n";
}
}

User avatar
philmalmaison
Nouveau
Nouveau
Posts: 1148
Joined: 08 Jun 2007 12:00
Location: Ile de France

Post by philmalmaison » 24 Apr 2008 9:54

in shell script ?

User avatar
Darvedd
Nouveau
Nouveau
Posts: 9
Joined: 31 Jul 2007 12:00

Post by Darvedd » 28 Apr 2008 3:48

ecaqrtab update QRNAME value

run the script as user controlm

Post Reply