crond的 [英] crond
问题描述
如何创建一个定期调用以执行某项任务的流程?
这不一定是php但不确定在哪里询问。
基本上我想要创建一个PHP脚本或应用程序(C ++会很好)
每天运行一次将生成一组图像用于
验证码。
我可以寻找更多信息的想法或想法吗?
谢谢,
Jon
你在帖子的主题中提到了它 - 使用cron。
http://unixhelp.ed.ac.uk/CGI/man-cgi?crontab+5
它可以通过cron直接调用php脚本,或者你调用一个
小shellcript,打开php,f 。 e。
#!/ bin / sh
#执行php脚本
#-q = quiet,压制php-header
php -q /home/mysql/script.php
blockquote>
6月5日,7:21 am,Lammi< Lorenz.Lammersd ... @ gmail.comwrote:
你在帖子的主题中提到它 - 使用cron。
http://unixhelp.ed.ac .uk / CGI / man-cgi?crontab + 5
可以通过cron直接调用php脚本或者你打电话给
small shellscript,打开php,f。 e。
#!/ bin / sh
#执行php脚本
#-q = quiet,抑制php-header
php -q /home/mysql/script.php
如果你可以使用cron cos你在windows上,改用cronw。您也可以将
注册为服务并每天启动(
服务可以在工作完成后自行停止)然后你可以使用
行如
" service name"开始
$ c $ b in cron
我没有注意到注册即服务,但我提到它只是为了b / b
的乐趣!
shimmyshack写道:
6月5日上午7:21,Lammi< Lorenz.Lammersd。 .. @ gmail.comwrote:
>你在帖子的主题中提到它 - 使用cron。
http://unixhelp.ed.ac.uk/CGI/man- cgi?crontab + 5
它可以通过cron直接调用php脚本,或者你调用一个
小shellcript,打开php,f。 e。
#!/ bin / sh
#exe php脚本
#-q =安静,压制php-header
php -q /home/mysql/script.php
如果你可以在Windows上使用cron cos,请改用cronw。您也可以将
注册为服务并每天启动(
服务可以在工作完成后自行停止)然后你可以使用
行如
" service name"开始
$ c $ b in cron
我没有注意到注册即服务,但我提到它只是为了b / b
的乐趣!
或者更容易 - 只需在控制面板中设置一个计划任务。
-
= =================
删除x来自我的电子邮件地址
Jerry Stuckle
JDS计算机培训公司
js ******* @ attglobal.net
==================
How do I create a process that will be called periodically to do some task?
This is not necessarily php but not sure where to ask.
Essentially I want to create either a php script or app(C++ would be nice)
to run once a day that will generate a set of images to be used for
captchas.
Any ideas or ideas where I can look for more info?
Thanks,
Jon解决方案you mentioned it in the subject of your post - use cron.
http://unixhelp.ed.ac.uk/CGI/man-cgi?crontab+5
it''s possible to call a php script via cron directly or you call a
small shellscript, that open the php, f. e.
#!/bin/sh
# execute php script
# -q =quiet, suppress the php-header
php -q /home/mysql/script.php
On Jun 5, 7:21 am, Lammi <Lorenz.Lammersd...@gmail.comwrote:you mentioned it in the subject of your post - use cron.
http://unixhelp.ed.ac.uk/CGI/man-cgi?crontab+5
it''s possible to call a php script via cron directly or you call a
small shellscript, that open the php, f. e.
#!/bin/sh
# execute php script
# -q =quiet, suppress the php-header
php -q /home/mysql/script.phpif you can use cron cos you are on windows, use cronw instead. You can
also register your script as a service and start that every day (the
service could self-stop after its work is done) then you could use a
line such as
"service name" start
in cron
I dont see a point to registering as a service, but I mention it just
for fun!
shimmyshack wrote:On Jun 5, 7:21 am, Lammi <Lorenz.Lammersd...@gmail.comwrote:>you mentioned it in the subject of your post - use cron.
http://unixhelp.ed.ac.uk/CGI/man-cgi?crontab+5
it''s possible to call a php script via cron directly or you call a
small shellscript, that open the php, f. e.
#!/bin/sh
# execute php script
# -q =quiet, suppress the php-header
php -q /home/mysql/script.php
if you can use cron cos you are on windows, use cronw instead. You can
also register your script as a service and start that every day (the
service could self-stop after its work is done) then you could use a
line such as
"service name" start
in cron
I dont see a point to registering as a service, but I mention it just
for fun!
Or easier yet - just set up a scheduled task in the control panel.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
这篇关于crond的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!