linux crontab scheduled task, the task alone linux command executed properly, put the timing of the task is not performed, the solution (original)

This is what I crontab inside

  * / 30 * * * * ./usr/bin/wget -q -O sync_log.txt http://fly.dllm.cn/index.php/Home/Index/order_update
set every three minutes to perform, but how it all It is not executed.

Then I pull out a separate command to execute

[root @ ik08e8bZ /] # ./usr/bin/wget -q -O sync_log.txt http://fly.dllm.cn/index.php/Home/Index/order_update
success, after execution, pulling into orders the library

The reason: the implementation of a separate directory is the root directory, wget direct path write a relative path ./usr/bin/wget but the timing to write the script inside the absolute path / usr / bin / wget.

That's all changed:

*/30 * * * * /usr/bin/wget -q -O sync_log.txt http://fly.dllm.cn/index.php/Home/Index/order_update

Guess you like

Origin www.cnblogs.com/gyrgyr/p/10980027.html