[torqueusers] Standard output before the end of job

Rajil Saraswat rajil.s at gmail.com
Tue Apr 8 11:44:27 MDT 2008


> You will want to use:
>
> #PBS -k oe
>
> which will write those files back to your *home* directory
> (not $PBS_O_WORKDIR) as the job runs.
>
> If you want them somewhere else you need to use:
>
> #PBS -o /path/to/stdout.o
> #PBS -e /path/to/stderr.e

Thanks for your reply. But this doesnt seem to work. This is what i did:

1. Created a job file and inserted date at the top and bottom of the script.  
I also Inserted a 2 minute delay in the job.
-------------------------------------
~cat dummy.job
#!/bin/sh
#PBS -q default
#PBS -j oe
#PBS -o /home/yy/tmp/tst1/dummy.job.o
#PBS -e /home/yy/tmp/tst1/dummy.job.e

date
echo "Job execution host: " $HOSTNAME
echo "Shell: " $SHELL
echo "The host where the job was submitted: " $PBS_O_HOST
echo "The login name was used for submitting the job: " $PBS_O_LOGNAME
echo "Home directory: " $PBS_O_HOME
echo "Working directory: " $PBS_O_WORKDIR
echo "PBS environment: " $PBS_ENVIRONMENT
echo "Original queue: " $PBS_O_QUEUE
echo "Execution queue: " $PBS_QUEUE
echo "Job ID: " $PBS_JOBID
echo "Job name: " $PBS_JOBNAME
sleep 240
date
---------------------------------------------------------
2. Submitted it.
3. Did an ls -la
-----------------------
~qsub dummy.job
37.desktop
~ls -la
total 32
drwxr-xr-x  2 yy users  4096 2008-04-08 18:24 .
drwxr-xr-x 86 yy users 20480 2008-04-08 18:25 ..
-rw-r--r--  1 yy users   576 2008-04-08 18:24 dummy.job
--------------------------------

4. As you can see above there is no dummy.job.o in my directory. Ofcourse once 
the job has finished, it appears
------------------------------
~ls -la
total 36
drwxr-xr-x  2 yy users  4096 2008-04-08 18:30 .
drwxr-xr-x 86 y users 20480 2008-04-08 18:25 ..
-rw-r--r--  1 yy users   576 2008-04-08 18:24 dummy.job
-rw-------  1 yy users   391 2008-04-08 18:28 dummy.job.o

~cat dummy.job.o
Tue Apr  8 18:24:58 BST 2008
Job execution host:  desktop
Shell:  /bin/bash
The host where the job was submitted:  desktop
The login name was used for submitting the job:  yy
Home directory:  /home/yy
Working directory:  /home/yy/tmp/tst1
PBS environment:  PBS_BATCH
Original queue:  default
Execution queue:  default
Job ID:  37.desktop
Job name:  dummy.job
Tue Apr  8 18:28:58 BST 2008
---------------------



I will check pbstools out.

Cheers
Rajil


More information about the torqueusers mailing list