linux crontab定时任务执行出错
如下执行这条命令出现这个错误 -bash: */1: No such file or directory而且a.sh这个脚本根本就没执行,如果我单独执行sh /root/changerpasswd/a.sh &是可以的,求解。
[root@qiu changerpasswd]# */1 * * * * sh /root/changerpasswd/a.sh &
[1] 25202
[root@qiu changerpasswd]# -bash: */1: No such file or directory
[root@qiubaolin changerpasswd]# crontab -l
no crontab for root