1.查看lynx命令所在的路径

whereis lynx 或者 which lynx

如果没有,则安装 yum install lynx 或者 apt-get方式(ubuntu)

2.建立 shell脚本(假如 lynx路径为 /usr/bin)

#!bin/sh

/usr/bin/lynx -source http://www.xxx.com/xxx/abc.php #脚本所在的url

保存,假如保存在 /usr/local/phpShell.sh

3.用crond定时执行

crontab -e

输入

* * * * * /usr/local/phpShell.sh

相关的 * 代表相关的时间设置

 

相关文章:

  • 2022-12-23
  • 2021-09-13
  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
  • 2022-12-23
  • 2021-04-14
  • 2022-01-28
猜你喜欢
  • 2021-08-14
  • 2022-12-23
  • 2022-01-28
  • 2022-12-23
相关资源
相似解决方案