[torqueusers] Environmental variable within the qsub submission
Albino A. Aveleda
bino at coc.ufrj.br
Thu Jun 17 05:32:57 MDT 2010
You also can add this line in your job file.
-V Declares that all environment variables in the qsub command's environment are
to be exported to the batch job.
----- Mensagem original -----
De: "Philippe Weill" <Philippe.Weill at aero.jussieu.fr>
Para: "Torque Users Mailing List" <torqueusers at supercluster.org>
Enviadas: Quinta-feira, 17 de Junho de 2010 4:39:09
Assunto: Re: [torqueusers] Environmental variable within the qsub submission
Le 16/06/2010 20:34, Claude DEROGNAT a écrit :
> Torque and mpirun work correctly but We have got a another problem now:
> Our server run under bash SHELL. We add in the the .bashrc with several environmental variables.
> After the reload of the .bashrc file (source .bashrc), they are all implemented but not under a qsub.
> A attached you our script submitted to torque through qsub , the result and out .bashrc.
> The "env" edition shows us a strange behavior for PATH as exemple:
> The PATH specified in the .bashrc is affected to the PATH_O_PBS but the standard PATH is only set to /bin and /usr/bin
> Any idea ?
I think the answer is in the beginning your .bashrc with comments ;-)
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
More information about the torqueusers