When I want to test my cron jobs I usually set the interval very low and monitor the logs closely. When I am convinced the entry is correct, I set the interval back to a sane value.
For example, run job every two minutes:
*/2 * * * * echo "Hello World"
And the I run tail -f
on my log file (/var/log/syslog
on debian).
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…