How do I know if a cron job is running in Linux?

How do I know if a cron job is running in Linux?
Answer
When the job finishes, the file /path/cron. end will have the timestamp when the cron finished. So a
simple ls -lrt /path/cron.
{start,end}
will tell you when the job started and if it is still running (the order will tell you if it is still running).
 

Tìm kiếm

Back
Top