SGE would not read your .bashrc or .bash_profile when starting jobs.
You need to include -V or -v option.
ex) qsub -V -cwd -j y script.sh
-V
Specifies that all environment variables active within the qsub utility be exported to the context of the job.
-v variable[=value],...
Defines or redefines the environment variables to be exported to the execution context of the job. If the -v option is present Grid Engine will add the environment variables defined as arguments to the switch and, optionally, values of specified variables, to the execution context of the job.
You can also set as default option.
> vi /opt/gridengine/default/common/sge_request
(ADD) -V
You need to include -V or -v option.
ex) qsub -V -cwd -j y script.sh
-V
Specifies that all environment variables active within the qsub utility be exported to the context of the job.
-v variable[=value],...
Defines or redefines the environment variables to be exported to the execution context of the job. If the -v option is present Grid Engine will add the environment variables defined as arguments to the switch and, optionally, values of specified variables, to the execution context of the job.
You can also set as default option.
> vi /opt/gridengine/default/common/sge_request
(ADD) -V
'TA > Cluster' 카테고리의 다른 글
[sge] adding a parallel enviroment in SGE (0) | 2012.12.24 |
---|---|
[sge] queue management in SGE (0) | 2012.12.24 |
[sge] qsub 할때 slot 수 할당하는 방법 (0) | 2012.12.24 |
[sge] qsub 할때 default option 값 지정해두는 방법 (0) | 2012.12.24 |
[sge] sge qsub, qstat, qdel (0) | 2012.12.24 |