[英]How can i make a code run automatically every 30 mins in shell script or PHP?
I have a code which I want to run every 30mins.我有一个代码,我想每 30 分钟运行一次。 Since it is not possible to do it manually over 30 days I wanted to make it an automated process.由于不可能在 30 天内手动完成,因此我想让它成为一个自动化过程。 Please suggest me how to do it.请建议我怎么做。 I want to execute this command in Putty.我想在 Putty 中执行这个命令。
--user root --host 10.0.2.140 --port 3306 --socket /var/lib/mysql/mysql.sock
Unix and derivatives use Cron Jobs Unix 及其衍生产品使用 Cron Jobs
http://en.wikipedia.org/wiki/Cron http://en.wikipedia.org/wiki/Cron
Windows uses scheduled tasks. Windows 使用计划任务。
https://superuser.com/questions/85297/how-to-schedule-a-task-in-windows-7 https://superuser.com/questions/85297/how-to-schedule-a-task-in-windows-7
Note that there are also some Cron clone implementations for windows available if you prefer.请注意,如果您愿意,还可以使用 windows 的一些 Cron 克隆实现。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.