不会吧,我测试了,去掉/5前面的空格是没问题的。有那个空格的确会出现"crontab.XXXXLiGc35" 7L, 607C written crontab: installing new crontab "/tmp/crontab.XXXXLiGc35":3: bad hour errors in crontab file, can't install. 这个错误
:wq 保存后总是出现下面的错误提示"crontab.XXXXitpz8B" 1L, 126C written crontab: installing new crontab "/tmp/crontab.XXXXitpz8B":1: bad hour errors in crontab file, can't install. Do you want to retry the same edit? 什么意思啊 为什么会这样呢
* /5 * * * /usr/bin/lynx --source http://www.ufotown.cn/aaa.php > /data/web/rea
ltimefly这样也试过了 不行 wq保存的时候就会出现上面的问题
crontab: installing new crontab
"/tmp/crontab.XXXXLiGc35":3: bad hour
errors in crontab file, can't install. 这个错误
这样写是正确的吗 后面的/dev/null 是不是抛出废弃了
crontab: installing new crontab
"/tmp/crontab.XXXXitpz8B":1: bad hour
errors in crontab file, can't install.
Do you want to retry the same edit? 什么意思啊 为什么会这样呢
* /5 * * * lynx -source http://www.ufotown.cn/aaa.php >; /dev/null 2>;&1
*/5 * * * lynx -source http://www.ufotown.cn/aaa.php >; /dev/null 2>;&1
* /5 * * * lynx -source http://www.ufotown.cn/aaa.php >; /dev/null 2>;&1 上面两行的比较,确定你是复制过去的???
但是现在需要解决的是我怎么把参数传递过去呢
假如我的文件是这样的http://www.ufotown.cn/aaa.php?aa=bb&cc=dd
就用空格隔开就可以了
我现在又有一个新的问题
为什么 lynx http://www.ufotown.cn/aaa.php?aa=bb&cc=dd > /data/tmp/aa.log 后aa.log文件里都是乱码呢
乱码是编码设置问题.
有没有知道的使用lynx或者wget都是怎么传参的呢,解决马上结贴
我的wget http://www.ufotown.cn/aaa.php?aa=bb&cc=dd 这个命令是错误的 我尝试了