如何在没有cron的情况下安排脚本?

编程入门 行业动态 更新时间:2024-10-15 04:22:13
本文介绍了如何在没有cron的情况下安排脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

解决方案

"杰科" <无**** @ hotmail>在消息中写道 news:gz ***************** @ newssvr25.news.prodigy.co m ...

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

不幸的是,你每小时都需要cron来创建文件。 也许如果你的一个朋友有一个linux盒子,你可以让他设置一个cron 的工作,每隔一段时间就将lynx指向脚本,否则可能会离开一台 浏览器窗口在你的机器上打开,窗口设置为每隔一次刷新 经常(使用元刷新或其他)

"杰科" <无**** @ hotmail>写在 新闻:gz ***************** @newssvr25.news.prodigy.co m:

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

在你最常访问的网页上,使用一些服务器端代码检查 时间,如果它随着你的间隔范围而下降,那就运行一些代码。 - Edward Alfert www.rootmode/ 多域名托管和转销商托管计划 优惠券代码(重复

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> 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> 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 www.rootmode/ Multiple Domain Hosting and Reseller Hosting Plans Coupon Code (Recurring

5/month Discount): newsgroup

更多推荐

如何在没有cron的情况下安排脚本?

本文发布于:2023-11-24 00:14:19,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1623278.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:脚本   情况下   如何在   cron

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!