Article 4X8WJ trying to set up a cron job to monitor if a shell script is running and if not, send an e-mail

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!

mikelatest?d=yIl2AUoC8zA latest?i=ucvQMFF63n8:Rzjc6HvQjzs:F7zBnMy latest?i=ucvQMFF63n8:Rzjc6HvQjzs:V_sGLiP latest?d=qj6IDK7rITs latest?i=ucvQMFF63n8:Rzjc6HvQjzs:gIN9vFwucvQMFF63n8
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments