2012-02-11 185 views
0

我有一個簡單的cron作業cron中設置像這樣:cron作業部分運行

## Uncomment for running the logs 
55 1 * * * /hn/all_fetcher 

all_fetcher很簡單

/hn/fetcher [email protected] 
echo "fired node4 fetcher" 
/hn/fetcher [email protected] 
echo "fired node5 fetcher" 
/hn/fetcher [email protected] 
echo "fired main fetcher" 
/hn/fetcher [email protected] 
echo "fired node2 fetcher" 
/hn/fetcher [email protected] 
echo "fired node3 fetcher" 

並非所有這些作業運行。如果我改變順序,最後一個失敗,前4個。

調試cron是痛苦的世界:(任何建議,如何可靠地辦呢?當你的手,而不是由cron運行此腳本

回答

1

,會發生什麼?同樣的結果?

的Cron應該可以發送電子郵件從腳本正在運行的所有輸出。您可以通過這些在你的crontab的頂部設置MAILTO變量發送給您,如

[email protected]mple.net 
## Uncomment for running the logs 
55 1 * * * /hn/all_fetcher 
+0

我會給一個去 – 2012-02-19 10:03:37