/usr/lib/R/site-library/Rmpi/Rslaves.sh is in r-cran-rmpi 0.6-6-4build1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | #!/bin/sh
if [ $# -lt 4 ]; then
echo "Need 4 arguments" > err.log
exit 1
fi
Rscript=$1
R_HOME=$4
if [ ! -r $Rscript ]; then
echo $Rscript "does not exist or is not readable!" > err.log
exit 1
fi
if [ "$3" = "needlog" ]; then
hn=`hostname -s`
$R_HOME/bin/R --no-init-file --slave --no-save -f $1 > $hn.$2.$$.log 2>&1
else
$R_HOME/bin/R --no-init-file --slave --no-save -f $1 > /dev/null 2>&1
fi
|