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
QR to ADD to JOBS in script managment
- philmalmaison
- Nouveau
- Posts: 1148
- Joined: 08 Jun 2007 12:00
- Location: Ile de France
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";
}
}
#!/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";
}
}
- philmalmaison
- Nouveau
- Posts: 1148
- Joined: 08 Jun 2007 12:00
- Location: Ile de France