/etc/crontab 添加定时任务 无效

LinuxMint9(LXDE)添加一个定时关机的任务,

/etc/crontab中添加一行 sudo leafpad /etc/crontab

22 21 * * * root shutdown -h now

发现无效,google之后, 原因是因为少了换行符

22 21 * * * root shutdown -h now

LinuxMint10没有这个问题, 没有换行符一样可以。

猜你喜欢

转载自jasonright.iteye.com/blog/825491