etc/crontab和crontab -e - Linux

By Isabella
at 2017-09-22T19:04
at 2017-09-22T19:04
Table of Contents
各位大大好:
我想要利用排程每天自動備份資料夾
原本是查到etc/crontab 將程式寫進去可是我怎麼試都沒辦法
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# For details see man 4 crontabs
# Example of job definition:
# .---------------- minute (0 - 59)
# | .------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR
sun,mon,tue,wed,thu,fri,sat
# | | | | |
# * * * * * user-name command to be executed
*/5 * * * * /program/find.sh
可直接在root 底下打 crontab -e 加入
*/5 * * * * /program/find.sh
就又可以用了,另外想問crontab -e 是不是存在/tmp/下面 但我用cd找
都找不到檔..
是不是我觀念有誤,謝謝
--
我想要利用排程每天自動備份資料夾
原本是查到etc/crontab 將程式寫進去可是我怎麼試都沒辦法
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# For details see man 4 crontabs
# Example of job definition:
# .---------------- minute (0 - 59)
# | .------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR
sun,mon,tue,wed,thu,fri,sat
# | | | | |
# * * * * * user-name command to be executed
*/5 * * * * /program/find.sh
可直接在root 底下打 crontab -e 加入
*/5 * * * * /program/find.sh
就又可以用了,另外想問crontab -e 是不是存在/tmp/下面 但我用cd找
都找不到檔..
是不是我觀念有誤,謝謝
--
Tags:
Linux
All Comments

By Frederic
at 2017-09-25T22:32
at 2017-09-25T22:32

By Catherine
at 2017-09-27T20:50
at 2017-09-27T20:50

By Aaliyah
at 2017-09-29T16:47
at 2017-09-29T16:47

By Caitlin
at 2017-10-03T12:06
at 2017-10-03T12:06

By Thomas
at 2017-10-05T07:26
at 2017-10-05T07:26

By Sandy
at 2017-10-09T19:12
at 2017-10-09T19:12
Related Posts
shell script

By Carol
at 2017-09-21T20:27
at 2017-09-21T20:27
xQuartz字體問題

By Frederic
at 2017-09-21T09:12
at 2017-09-21T09:12
ubuntu 安裝 硬碟分割問題

By Ina
at 2017-09-21T08:36
at 2017-09-21T08:36
ubuntu 安裝 硬碟分割問題

By Vanessa
at 2017-09-21T07:16
at 2017-09-21T07:16
pcmanx的畫面設定問題

By Frederica
at 2017-09-21T07:12
at 2017-09-21T07:12