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 ??
#SBATCH --output="demo.%j.%N.out" #SBATCH --error="demo.%j.%N.err"
, how do I adapt it to qsub? – MalteseHow to include the job id and other info in the output file for qsub?
– Maltese