Skip to content
Snippets Groups Projects
Commit 8b49fc2c authored by Thomas Jahns's avatar Thomas Jahns :cartwheel:
Browse files

Add test whether executing host is in .rhosts to IBM PE MPI launcher.

parent 2b5f4eea
No related branches found
No related tags found
No related merge requests found
......@@ -5,9 +5,14 @@ if [ x"$1" = x-n ]; then
export MP_PROCS
shift
fi
hostname=$(hostname)
if ! grep "$hostname" $HOME/.rhosts 2>/dev/null >&2 ; then
echo "Error: current hostname not in ~/.rhosts!" >&2
exit 1
fi
MP_HOSTFILE=`mktemp -t hostfile.tmpXXXXXX`
trap '/bin/rm -f $MP_HOSTFILE' EXIT
export MP_HOSTFILE
yes "`hostname`" | head -n ${MP_PROCS-1} >$MP_HOSTFILE
yes "$hostname" | head -n ${MP_PROCS-1} >$MP_HOSTFILE
poe "$@"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment