- 論壇徽章:
- 0
|
大家好,我的一個(gè)腳本用crontab定時(shí)運(yùn)行,我做了如下操作:
1. crontab -e
2. 添加內(nèi)容 1 * * * * /home/my_path/getIp.sh (每小時(shí)的第一分鐘執(zhí)行)
3. wq 保存
頭幾個(gè)小時(shí)挺穩(wěn)定的,后來就不執(zhí)行了,我用crontab -e 看了一下,里面多了幾千行很多東西,而且我添加的任務(wù)也被沖掉了,crontab -e 顯示如下:
s file to introduce tasks to be run by cron.
#
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
#
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').#
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
# Edit this file to introduce tasks to be run by cron.
# Edit this file to introduce tasks to be run by cron.
# Edit this file to introduce tasks to be run by cron.
# Edit this file to introduce tasks to be run by cron.
#
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
#
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').#
# Notice that tasks will be started based on the cron's system
。。。。。。
后面還有幾千行
請(qǐng)問這是怎么回事啊,我的操作方法不對(duì)嗎,請(qǐng)幫忙指教一下,謝謝大家了! |
|