Skip to content

Commit

Permalink
Added start/end time to R command
Browse files Browse the repository at this point in the history
  • Loading branch information
rollinroy committed Feb 2, 2018
1 parent 7033b4b commit 66268a8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions runRscript.sh
Expand Up @@ -21,7 +21,8 @@ fi

args=("$@") # all arguments
unset args[0] # remove first argument (R script name)

tb=`date`
echo ">>> Start job: $JOB_ID at $tb ... "
R -q --vanilla --args ${args[@]} $TASK < $1


Expand All @@ -35,5 +36,6 @@ then
touch fail.${JOB_ID}
fi
fi

te=`date`
echo ">>> End job: $JOB_ID at $te"
exit $R_exit_code

0 comments on commit 66268a8

Please sign in to comment.