Commit 721d924b authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

Cleaned up bsub call and also made it explicitly execyre the scrip with

perl rather than relying on the script to be executable.
parent 8859eca4
...@@ -123,8 +123,14 @@ my @ranges = ('^[a-b]','^c','^d','^e','^f','^[g-h]','^[i-l]','^m[a-i]','^m[j-z]' ...@@ -123,8 +123,14 @@ my @ranges = ('^[a-b]','^c','^d','^e','^f','^[g-h]','^[i-l]','^m[a-i]','^m[j-z]'
my $core_db = ".*core_$release\_.*"; my $core_db = ".*core_$release\_.*";
my $call; my $call;
foreach my $pattern (@ranges){ foreach my $pattern (@ranges){
$call = "bsub -R 'select[(myens_staging1<=800)&&(myens_staging2<=800)]' -o ${path}/output_translation_${pattern}.txt -e ${path}/output_translation_${pattern}.err -q $queue -R$memory ./translation_attribs.pl --user $user --pass $pass $options"; $call = "bsub "
$call .= " --pattern '" . $pattern . $core_db. "'"; . "-R 'select[(myens_staging1<=800)&&(myens_staging2<=800)]' "
. "-o ${path}/output_translation_${pattern}.txt "
. "-e ${path}/output_translation_${pattern}.err "
. "-q $queue "
. "-R$memory "
. "perl ./translation_attribs.pl --user $user --pass $pass $options";
$call .= " --pattern '" . $pattern . $core_db . "'";
system($call); system($call);
#print $call,"\n"; #print $call,"\n";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment