I have a qsub script as
#####----submit_job.sh---#####
#!/bin/sh
#$ -N job1
#$ -t 1-100
#$ -cwd
SEEDFILE=/home/user1/data1
SEED=$(sed -n -e "$SGE_TASK_ID p" $SEEDFILE)
/home/user1/run.sh $SEED
The problem is-- it puts all error and output files (job1.eJOBID & job1.oJOBID) to the same directory from where I am running qsub submit_job.sh while I want to save these file (output and error log file in same different place (specified as $SEED_output). I tried to change the line as
/home/user1/run.sh $SEED -o $SEED_output
But it didn't work. Any suggestion ?? How can I specify path and name of default output and error log file ??
At first glance, you need brackets around your variable in the -o declaration.
/home/user1/run.sh $SEED -o ${SEED}_output
Otherwise bash is looking for a variable called ${SEED_output} which doesn't exist.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With