working directory incorrect with tcsh

djhale djhale at sandia.gov
Wed Jul 21 17:40:54 EDT 2004


The first example is using tcsh, the PWD env variable seems to be incorrect 
from the mpiexec output.  The second example is using bash which works as I 
would expect.  I'd like tcsh to act the same as bash, is there a fix for 
this?

Thanks for your help, Darrian

Here's the behavior: 

----------------------------TCSH---------------------------------
[djhale at shasta3 ~]$ pwd
/home/djhale
[djhale at shasta3 ~]$ qsub -q admin -l nodes=3:ppn=2,walltime=25:00:00 -I
Submitting job to admin queue

qsub: waiting for job 10996.admin2 to start
qsub: job 10996.admin2 ready

ICC Portable Batch System
Job Id: 10996.admin2
Username: djhale

[djhale at cn11 ~]$ cd bin/test
[djhale at cn11 test]$ pwd
/home/djhale/bin/test
[djhale at cn11 test]$ mpiexec -pernode env | grep PWD
PWD=/home/djhale
OLDPWD=/home/djhale
PWD=/home/djhale
OLDPWD=/home/djhale
PWD=/home/djhale
OLDPWD=/home/djhale

----------------------------BASH---------------------------------
[djhale at shasta3 ~]$ pwd
/home/djhale
[djhale at shasta3 ~]$ qsub -q admin -l nodes=3:ppn=2,walltime=25:00:00 -I
Submitting job to admin queue

qsub: waiting for job 10995.admin2 to start
qsub: job 10995.admin2 ready

ICC Portable Batch System
Job Id: 10995.admin2
Username: djhale

[djhale at cn11 ~]$ cd bin/test
[djhale at cn11 test]$ pwd
/home/djhale/bin/test
[djhale at cn11 test]$ mpiexec -pernode env | grep PWD
PWD=/home/djhale/bin/test
PWD=/home/djhale/bin/test
PWD=/home/djhale/bin/test



More information about the mpiexec mailing list