我使用cron作业offlineimap
每2分钟致电一次:
*/2 * * * * /usr/bin/offlineimap > ~/Maildir/offlineimap.log 2>&1
我需要杀死cron来解决问题。然后如何重新启动cron作业(不重新启动)?我在网上找到了这个“解决方案”:
mylogin@myhost:~$ sudo /etc/init.d/cron restart
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service cron restart
Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the stop(8) and then start(8) utilities,
e.g. stop cron ; start cron. The restart(8) utility is also available.
cron stop/waiting
cron start/running, process 26958
但是,使用时ps -ef | grep ...
,我看不到工作...怎么了?
您看不到哪个工作?
—
Spack
打开您的工作
—
jasonwryan
crontab
,注释掉该工作,进行维护,然后取消注释...