我正在我的服务器上运行 shell 脚本。下面是脚本:
#!/bin/bash
#----- cd /change working directory
cd /Net/Groups/BGI/people/sbesnard/PhD_MPI/RO1/Rproject/Landsat_Processing/Scripts/
ulimit -c 0
#----- specify the R-Script, commandline argument $1 has precedence
# get the error messages in english
export LANG=en_US
# only one thread, no automatic distributed computing
export OMP_NUM_THREADS=1
export BGC=PGI
RFILE=1.TC_Component_Calculation.R
if [ $# -ne 0 ]; then
RFILE=$1
fi
#echo $RFILE
#echo Rout/`basename $RFILE .R`.rout
echo $RFILE
DATUM=$(date '+%d_%m_%Y_%Hh%Mm')
FOLDER="${DATUM}_${LSB_JOBNAME}"
NUMPROC="$LSB_MCPU_HOSTS"
echo $DATUM
mkdir /Net/Groups/BGI/scratch/sbesnard/Rout/Rout_TC_Calc/$FOLDER
#--------- execute R
/usr/local/apps/R/R-3.2.2/bin/R CMD BATCH --vanilla "--args $FOLDER $NUMPROC" $RFILE /Net/Groups/BGI/scratch/sbesnard/Rout/Rout_TC_Calc/$FOLDER/${LSB_JOBNAME}.rout
但是,我收到此错误消息,但不知道如何修复它。
/User/homes/sbesnard/.lsbatch/1476445696.215609: line 8: bsub_TC_calc.sh: command not found
知道错误来自哪里吗?