bash - Linux, code that checks there are no currently running cron jobs? -
how write bash script checks there no running cron jobs, simple action?
i not talking cron jobs scheduled run @ point, referring actively running processes.
thanks!
intresting question ;)
for pid in `pgrep cron`;do ps uh --ppid $pid; done|grep -v cron
Comments
Post a Comment