Sun MPI 4.0 User's Guide: With CRE

Shell-Specific Actions

If you want to perform actions that are shell specific, such as executing compound commands, you must first invoke the appropriate shell as part of the mprun command. For example,

% mprun csh -c `echo $USER`

or

% mprun csh -c `cd /foo ; bar`