trying to set up a cron job to monitor if a shell script is running and if not, send an e-mail
by duurda from LinuxQuestions.org on (#4X8WJ)
good morning, i am running a shell script on our centos v6.9 server to push files out to other servers on our network. i would like to be able to create a cron job to run once an hour to monitor if the shell script is stopped, and if it does stop, send an e-mail to our network team to restart the script again.
any ideas? i'm new to scripting and appreciate any feedback. thank you!
mike


any ideas? i'm new to scripting and appreciate any feedback. thank you!
mike