[转载] Cron problem!# Unix - 噫吁兮,危乎高哉
M*n
1 楼
【 以下文字转载自 Linux 讨论区 】
【 原文由 MildSeven 所发表 】
I wrote a script called full_backup.sh to do bakcup. It is supposed to
run at a given time everyday. I log in as root, and type "crontab -e"
add a entry like following to the crontab file:
*******************************
15 18 * * * /usr/local/bin/full_backup.sh
********************************
The content of the full_backup.sh (I put it under /usr/local/bin) is:
******************************************
#!/bin/sh
mt -f /dev/nst0 rewind
rm
【 原文由 MildSeven 所发表 】
I wrote a script called full_backup.sh to do bakcup. It is supposed to
run at a given time everyday. I log in as root, and type "crontab -e"
add a entry like following to the crontab file:
*******************************
15 18 * * * /usr/local/bin/full_backup.sh
********************************
The content of the full_backup.sh (I put it under /usr/local/bin) is:
******************************************
#!/bin/sh
mt -f /dev/nst0 rewind
rm