pgrep/pkill can be your friends
Yuval Hager wrote:
Hi,
cron gives me a great way to start jobs at a given time. I am looking for a
way to stop jobs in a similar manner.
My use case is an rsync job I would like to run during the night
(midnight-6am). My thought was to simply save the pid somewhere when the job
starts, and kill it when it should end. Are there more elegant solutions?
Maybe something similar to rc initscripts start/stop scheme?
Thanks,
--yuval
--
Cyril SCETBON
**Happy Hannukkah**
=================================================================
To unsubscribe, send mail to linux-il-requ...@cs.huji.ac.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-requ...@cs.huji.ac.il