Discussion Locked

Crontab processes

0 helpful
11 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

How can I be sure or see my crontab processes after I started them on my crontab file

Thanks for your help !

11 replies

by cpfeiffe

I assume you are trying to verify that the cron job has run? If that is all you want you can look at the cron log - /var/cron/log. If you are looking to receive error output then configure syslog to log cron.* to a location you want to review. Ifyou have more specific questions you can email my alias. Good luck.

by duffym

well if you want to see if the actual process is running then run ps aux and look through that list. That can produce a lot of output so i'd run ps aux | grep -i process or ps aux | grep -i username. That should shorten the list for you to scan

by ldisanto

ON Aix, simply enter crontab -l | pg and you'll see the file listed that has been submitted.

by brentlc

Something else worth doing is setting the process to email what every log (or a simple message to you) upon completion. You can do this by: cat filename|mailx -s "title" email address.

by d-ced

To see them running:
ps -ef |grep

When setting up lines in your crontab, ensure you redirect output to a file. This way, you can simply check that file for the status of the run.

This discussion is closed to new replies.