請問一下,我寫了一個shell script,例如是:
ps > pslist.txt
這個shell script假如直接執行,會把ps的結果輸出到pslist.txt裡
可是我把這個shell script加到crontab裡
0,16,20,30,40,50 * * * * /home/ogre/test.sh
結果並沒有產生pslist.txt檔,會是那裡有問題,我看過/var/cron/log,
也都有去執行,可是就是沒有輸出檔
因為我是用solaris的crontab,不知道會不會是那裡沒注意到
謝謝
--
ps > pslist.txt
這個shell script假如直接執行,會把ps的結果輸出到pslist.txt裡
可是我把這個shell script加到crontab裡
0,16,20,30,40,50 * * * * /home/ogre/test.sh
結果並沒有產生pslist.txt檔,會是那裡有問題,我看過/var/cron/log,
也都有去執行,可是就是沒有輸出檔
因為我是用solaris的crontab,不知道會不會是那裡沒注意到
謝謝
--
All Comments