georgemarselis / openlava-macosx

Automatically exported from code.google.com/p/openlava-macosx
GNU General Public License v2.0
1 stars 0 forks source link

bsub or res: needs ./ in front of a shell script in order for the script to be executed #147

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

per https://mail.google.com/mail/u/0/#inbox/13e559da2be1c8ea

which means that either bsub/res does not read in the CWD or the user 
environment or something to that effect.

check the relevant code

replication test:
  execute a job, and see if the job result is "not found":

 bsub -o test1.out -e test1.err test1.script

#!/bin/bash
#
# LSF test1
#
#BSUB -P test1                          # Project test1
#BSUB -n 2
#BSUB -o test1.out                      # output filename
#BSUB -e test1.err                      # error filename
#BSUB -J test1                          # job name
#
echo 'my first job' 

but if i see the output file (test1.out):

Sender: LSF System <root@pedro>
Subject: Job 1253: <test1.script> Exited

test case:
 execute a job, and see if the job result is "found":

 bsub -o test1.out -e test1.err test1.script

Original issue reported on code.google.com by geo...@marsel.is on 14 May 2013 at 1:08