crontab问题:02 05 * * * ls /var/lib/pgsql -la > /var/lib/pgsql/aaa 为什么无结果?

我用ppp用户登录,用crontab -e 命令编辑内容如下:
02 05 * * * ls /var/lib/pgsql -la > /var/lib/pgsql/aaa
为什么在5:02分过后,/var/lib/pgsql目录下没有aaa文件?
---------------------------------------------------------------

三个建议:

1>用下面命令查看当前用户的crontab?
To display the contents of your crontab file held in the /var/spool/cron directory, enter:
crontab -l

2>如果有下面两个文件,检查一下
/etc/cron.d/cron.allow
/etc/cron.d/cron.deny

3>确认cron已经运行。
ps -ef ¦ grep cron

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus