Added some arguments.
use XML::Twig;
use Data::Dumper;
+our $ps='https://skurut1,cesnet.cz:8901';
+our $is='https://scientific.civ.zcu.cz:8904';
+
our $lbattr='http://egee.cesnet.cz/en/Schema/LB/Attributes';
our $jpsys='http://egee.cesnet.cz/en/Schema/JP/System';
our $jpwf='http://egee.cesnet.cz/en/Schema/JP/Workflow';
use pch;
use Data::Dumper;
-my $ps='https://skurut1.cesnet.cz:8901';
-my $is='https://skurut1.cesnet.cz:8902';
+my $ps=$pch::ps;
+my $is=$pch::is;
my @according_jobs = (); # sequencially jobid list
my %according_jobs = (); # hash jobid list
use pch;
use Data::Dumper;
-my $ps='https://skurut1.cesnet.cz:8901';
-my $is='https://skurut1.cesnet.cz:8902';
+my $ps=$pch:ps;
+my $is=$pch:is;
my $program_name = "softmean";
my @according_jobs = (); # sequencially jobid list
my $output;
-if ($#ARGV + 1 != 1) {
- print STDERR "Usage: $0 OUTPUT_FILE\n";
+if ($#ARGV + 1 < 1) {
+ print STDERR "Usage: $0 OUTPUT_FILE [PROGRAM]\n";
exit 1
}
$output = $ARGV[0];
+if ($#ARGV + 1 > 1) { $program_name = $ARGV[1]; }
# debug calls
$pch::debug = 0;
use pch;
use Data::Dumper;
-my $ps='https://skurut1.cesnet.cz:8901';
-my $is='https://skurut1.cesnet.cz:8902';
+my $ps=$pch::ps;
+my $is=$pch::is;
my @attributes = ("$pch::jpsys:jobId", "$pch::jpwf:ancestor", @pch::view_attributes);
my @according_jobs = (); # sequencially jobid list
my %attributes = %{$job{attributes}};
my $stage = $attributes{"$pch::jplbtag:IPAW_STAGE"}{value}[0];
- if ( $stage == 3 || $stage == 4 || $stage == 5) {
+# if ( $stage == 3 || $stage == 4 || $stage == 5) {
+ if ( $stage == 2 || $stage == 3) {
print "jobid $jobid:\n";
# query & output all desired atributes
use pch;
use Data::Dumper;
-my $ps='https://skurut1.cesnet.cz:8901';
-my $is='https://skurut1.cesnet.cz:8902';
+my $ps=$pch::ps;
+my $is=$pch::is;
my $program_name='align_warp';
my $program_params='-m 12';
my $runday=1;
$pch::debug = 0;
my $debug = 0;
+if ($#ARGV + 1 > 1) { $program_name=$ARGV[0]; }
+
#
# find out processes with given name ant parameters
#
use pch;
use Data::Dumper;
-my $ps='https://skurut1.cesnet.cz:8901';
-my $is='https://skurut1.cesnet.cz:8902';
+my $ps=$pch::ps;
+my $is=$pch::is;
my $program_name='align_warp';
my $end_program_name='convert';
my $header="GLOBAL_MAXIMUM=4095"; # test for exact equal (scripts already prepared it)
$pch::debug = 0;
my $debug = 0;
+if ($#ARGV + 1 >= 1) { $program_name = $ARGV[0]; }
+if ($#ARGV + 1 >= 2) { $end_program_name = $ARGV[1]; }
+
#
# find out processes with given name and parameters
#
use pch;
use Data::Dumper;
-my $ps='https://skurut1.cesnet.cz:8901';
-my $is='https://skurut1.cesnet.cz:8902';
+my $ps=$pch::ps;
+my $is=$pch::is;
my $program_name='align_warp';
my $program_param='-m 12';
my $end_program_name='softmean';
$pch::debug = 0;
my $debug = 0;
+if ($#ARGV + 1 >= 1) { $program_name = $ARGV[0]; }
+if ($#ARGV + 1 >= 2) { $end_program_name = $ARGV[1]; }
+
#
# find out processes with given name and parameters
#