On Apr 29, 2010, at 11:24 AM, Jonathan Vincent wrote: > i.e. a simpler version such as > > sh -c '/usr/bin/env FOO=bar (echo hello)' > ksh -c '/usr/bin/env FOO=bar (echo hello)' > > is not valid > sh -c '/usr/bin/env FOO=bar echo hello' > works.
Per your later mails, plm_rsh_module.c does this: tmp = opal_argv_split("( test ! -r ./.profile || . ./.profile;", ' '); (and later adds the closing ")"). You reported the final line to be: /usr/bin/env LD_LIBRARY_PATH=/pdc/vol/openmpi/1.4.1/intel/lib:/pdc/vol/icompilers/11.1/icc/lib/intel64:/pdc/vol/i-compilers/11.1/ifort/lib/intel64 ( test ! -r ./.profile || . ./.profile; /pdc/vol/openmpi/1.4.1/intel/bin/orted -mca ess env -mca orte_ess_jobid 284360704 -mca orte_ess_vpid 3 -mca orte_ess_num_procs 5 --hnp-uri "284360704.0;tcp://193.11.170.208:49530" ) What would the correct syntax be? With the || and ;, are the () really unnecessary? I would think that would group things wrong, but I'm a tcsh user, not an sh user.... -- Jeff Squyres jsquy...@cisco.com For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/