Hi Ross --
Not a direct answer to your question, but here's an idea.
I guess you've got some script in a file batch.sh
#! /bin/bash
R --no-save --no-restore --gui=none `hostname` 21 BYE
# some mpi commands
# other mpi commands
BYE
and you do something like
mpiexec -np 10 batch.sh
Instead,
I'm invoking R from withing a shell script like this
R --no-save --no-restore --gui=none `hostname` 21 BYE
# various commands here
BYE
I would like to regain control from the invoking terminal at some point.
I tried source(stdin()) but got a syntax error, presumably stdin is the
little shell