How to get exit status of R script run in shell script
Just run the script you want.make sure it returns the correct exit status when finishing its run.This should work:
#!/bin/bash./abc.R 100if [ $? == 0 ]; then echo "Your script exited with exit status 0" exit 0
see more here:http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_08_02.html