[GE users] $JOB_ID in joined output stream

Reuti reuti at staff.uni-marburg.de
Tue Mar 29 22:41:34 BST 2005


    [ The following text is in the "ISO-8859-1" character set. ]
    [ Your display is set for the "ISO-8859-10" character set.  ]
    [ Some special characters may be displayed incorrectly. ]

Hi,

please try:

qsub -pe my_pe 2 -j y -o 'log.$JOB_ID'  ..

to avoid the expansion of $JOB_ID by the shell already. - Reuti


Quoting "Desany, Brian" <bdesany at 454.com>:

> Hi,
> 
> I'm having a problem with getting the output file name to match what I'm
> telling it.
> 
> The parts of qsub that seem to matter are:
> 
> qsub -pe my_pe 2 -j y -o log.$JOB_ID  ...
> 
> 
> When I join stdout and stderr for the job and specify the
> pseudo-environment variable $JOB_ID, the -o option does not insert the
> $JOB_ID.
> 
> Since I'm joining stderr and stdout, I tried using -e but that creates 2
> files (presumably 1 for each -pe slot I'm using), both of which have
> filenames that do include the $JOB_ID but which start with $JOB_NAME and
> not "log" as I specified.
> 
> Is there a way to accomplish what I want, which is a single output file
> (merged stderr and stdout) with the name that I specify, including the
> $JOB_ID?
> 
> Thanks,
> -Brian.
> 
> --------------------
> 
> Brian Desany, Ph.D.
> 454 Life Sciences
> 20 Commercial Street
> Branford, CT 06405
> 
> Phone: 203-871-2422
> Fax: 203-481-2075
> bdesany at 454.com
> www.454.com
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
> For additional commands, e-mail: users-help at gridengine.sunsource.net
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
For additional commands, e-mail: users-help at gridengine.sunsource.net




More information about the gridengine-users mailing list