我在redhat上运行crontab的.sh文件。此文件无法在Redhat上运行crontab
#!/bin/bash
echo "run every 1min..."
的 内容我与命令运行:
[[email protected] ~]# * * * * * /var/www/html/ac/bc/1.sh
bash: anaconda-ks.cfg: command not found
我在redhat上运行crontab的.sh文件。此文件无法在Redhat上运行crontab
#!/bin/bash
echo "run every 1min..."
的 内容我与命令运行:
[[email protected] ~]# * * * * * /var/www/html/ac/bc/1.sh
bash: anaconda-ks.cfg: command not found
类型crontab -e
然后键入您的cron命令。 然后保存它,按ESC
,然后按wq
,然后按enter
..完成。
类型
crontab -e
并按i
粘贴线
* * * * * /var/www/html/ac/bc/1.sh
下保存的crontab
按
esc
类型
:wq!
为什么PHP在这里是标签? – Anubhab 2013-03-08 10:35:02