troubleshooting Question

Can I set a cron to mail me when a process ends?

Avatar of StevenHook
StevenHook asked on
LinuxLinux NetworkingLinux Distributions
4 Comments1 Solution572 ViewsLast Modified:
I have an rsync that's been running for a few days now (since thursday)
But it should end tonight I think (estimate based on disk usage)
Can I get help making a script that I can put in cron that will mail me a simple "done" when the rsync process ends?
There are actually 2 different rsync's sunning, so I think it'll have to work on the PID to know which one is done.
Cron already mails me the outputs of commands, but the rsyncs weren't  run by cron, I started them in a console.
Steven Vona

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros