How do I know if jobs have been/are performing? - Crontab
cron, django, linux, python
Solution
First, I would probably configure cron to mail yourself any output by using `MAILTO`:
In /etc/crontab:
MAILTO=username
Second, I usually add something to my script that (almost) cannot possibly fail, like the following:
#!/bin/sh
echo "$0 ran on `date +%c`" >> /tmp/crontab_test.log
# ... rest of program
If you're calling a python script directly from cron, you could do something similar or create a wrapper shell script.
Problem
I have followed the suggestion in this question as I am using Django, I have set the script to store date and time of each run of the script in the db, but no entry has been stored yet in the database. Is there a way to figure out, other than typing "top" and searching through?