diff options
author | nicolabertoldi <nicolabertoldi@1f5c12ca-751b-0410-a591-d2e778427230> | 2010-11-10 13:32:34 +0300 |
---|---|---|
committer | nicolabertoldi <nicolabertoldi@1f5c12ca-751b-0410-a591-d2e778427230> | 2010-11-10 13:32:34 +0300 |
commit | d38b3194050fa361f008052171a6471ae8f3376e (patch) | |
tree | 41f184226003a5be3f621ac834a64c6dede4e58c /scripts/generic | |
parent | 82f29bfc16885111a1d337c758dbefb79d6e650c (diff) |
workaround to force the use of the bash shell in the SGE
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@3695 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'scripts/generic')
-rwxr-xr-x | scripts/generic/qsub-wrapper.pl | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/generic/qsub-wrapper.pl b/scripts/generic/qsub-wrapper.pl index 03a0e43e4..72e7f0c6e 100755 --- a/scripts/generic/qsub-wrapper.pl +++ b/scripts/generic/qsub-wrapper.pl @@ -87,7 +87,7 @@ sub print_parameters(){ #script creation sub preparing_script(){ - my $scriptheader="\#\!/bin/bash\n# the above line is ignored by qsub!\n\n"; + my $scriptheader="\#\!/bin/bash\n# the above line is ignored by qsub, unless parameter \"-b yes\" is set!\n\n"; $scriptheader.="uname -a\n\n"; $scriptheader.="cd $workingdir\n\n"; @@ -136,8 +136,10 @@ preparing_script(); my $maysync = $old_sge ? "" : "-sync y"; -# submit the main job -my $qsubcmd="qsub $queueparameters $maysync -V -o $qsubout -e $qsuberr -N $qsubname $jobscript > $jobscript.log 2>&1"; +# submit the main job with the parameter "-b yes" +my $qsubcmd="qsub $queueparameters $maysync -V -o $qsubout -e $qsuberr -N $qsubname -b yes $jobscript > $jobscript.log 2>&1"; + +#run the qsubcmd safesystem($qsubcmd) or die; #getting id of submitted job |