如何在没有cron的情况下安排脚本? [英] How to schedule script without cron?

查看:116
本文介绍了如何在没有cron的情况下安排脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法让我的脚本定期运行

而不使用cron?我的托管服务提供商很糟糕...不能使用cron ...我是想b / b
想想也许我可以在某个目录中每小时创建一个文件并且

然后激活脚本时文件计数达到一定数量,然后

清除目录......或类似的东西。有什么建议吗?


提前致谢。

解决方案



"杰科" <无**** @ hotmail.com>在消息中写道

news:gz ***************** @ newssvr25.news.prodigy.co m ...

有没有办法让我的脚本定期运行
而不使用cron?我的托管服务提供商很糟糕...不能使用cron ...我想bb b或许我可以在某个目录
中每小时创建一个文件,然后在文件计数达到一定数量时触发脚本,和
然后清除目录......或类似的东西。有什么建议吗?

提前致谢。




不幸的是,你每小时都需要cron来创建文件。


也许如果你的一个朋友有一个linux盒子,你可以让他设置一个cron

的工作,每隔一段时间就将lynx指向脚本,否则可能会离开一台

浏览器窗口在你的机器上打开,窗口设置为每隔一次刷新

经常(使用元刷新或其他)

"杰科" <无**** @ hotmail.com>写在

新闻:gz ***************** @newssvr25.news.prodigy.co m:

有没有办法让我的脚本在不使用cron的情况下按照定期的间隔运行?我的托管服务提供商很糟糕......不能使用
cron ...我想也许我可以在某个目录中每小时创建一个文件,然后在文件计数达到时触发脚本
一定数量,然后清除目录......或类似的东西。有什么建议吗?

提前致谢。




在你最常访问的网页上,使用一些服务器端代码检查

时间,如果它随着你的间隔范围而下降,那就运行一些代码。

-

Edward Alfert
http://www.rootmode.com/

多域名托管和转销商托管计划

优惠券代码(重复


5 /月折扣):新闻组


Is there a way to get my script to run on regularly scheduled intervals
without using cron? My hosting provider sucks... cannot use cron... I was
thinking perhaps I could create a file every hour in a certain directory and
then fire the script when the file count reaches a certain number, and then
clear out the directory... or something like that. Any suggestions?

Thanks in advance.

解决方案


"deko" <no****@hotmail.com> wrote in message
news:gz*****************@newssvr25.news.prodigy.co m...

Is there a way to get my script to run on regularly scheduled intervals
without using cron? My hosting provider sucks... cannot use cron... I was thinking perhaps I could create a file every hour in a certain directory and then fire the script when the file count reaches a certain number, and then clear out the directory... or something like that. Any suggestions?

Thanks in advance.



You would need cron to create the file every hour unfortunately.

Maybe if one of your friends has a linux box you could get him to set a cron
job that point lynx at the script every so often, or else maybe leave a
browser window open on your machine with a window set to refresh every so
often (with meta refresh or whatever)


"deko" <no****@hotmail.com> wrote in
news:gz*****************@newssvr25.news.prodigy.co m:

Is there a way to get my script to run on regularly scheduled
intervals without using cron? My hosting provider sucks... cannot use
cron... I was thinking perhaps I could create a file every hour in a
certain directory and then fire the script when the file count reaches
a certain number, and then clear out the directory... or something
like that. Any suggestions?

Thanks in advance.



on your most visited webpage, use some server side code that checks the
time and if it falls withing your interval range, then run some code.
--
Edward Alfert
http://www.rootmode.com/
Multiple Domain Hosting and Reseller Hosting Plans
Coupon Code (Recurring


5/month Discount): newsgroup


这篇关于如何在没有cron的情况下安排脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆