作者ogre0403 (肚子餓)
看板Linux
標題[問題] crontab的問題
時間Sat Apr 4 21:33:26 2009
請問一下,我寫了一個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,不知道會不會是那裡沒注意到
謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.140.57.40
推 gtypist:加個 執行身份 例如 root 04/04 21:37
推 namie1120:有給test.sh 執行權限嗎? 04/05 21:34