[SOLVED] crontab can't use shell script?

sili

Renowned Member
Dec 21, 2015
39
2
73
38
hello,
I use crontab -e edit my crontab

-----------------------------↓this is my crontab-----------------------------
30 9-18 * * * root sh /root/snapshot.bsh
* * * * * echo 1 >> /home/aaa/test
----------------------------------------------------------------------------------

and I can see log that is work

Dec 21 17:49:01 pve CRON[11746]: (root sh /root/snapshot.bsh)
Dec 21 17:49:01 pve CRON[11748]: (root) CMD (echo 1 >> /home/aaa/test)

I can't see zfs snapshot in my pve where I use crontab.
when I just do ./root/snapshot.bsh, this shell script is working.

anyone can help me? thank you very much
 
Last edited: