linux 服务自动调用

php服务地址:

http://192.168.2.117/web/index.php/buy/auctionselect

编写脚本service.sh,内容:

#! /bin/sh

crul http://192.168.2.117/web/index.php/buy/auctionselect

保存,chmod 777 service.sh

crontab -e

*/1 * * * * /bin/sh /www/web/dataauction/service.sh
保存,表示每分钟调用一次脚本

service crond restart
服务已启动

可以用命令查看
ps -ax | grep cron

原文地址:https://www.cnblogs.com/yuanxiaoping_21cn_com/p/4926031.html