dream12001 2009-11-26 03:18
浏览 45

每5分钟退出一次的脚本然后在它停止的地方更新

I've got a UNIX question... I have a PHP script that I run in the terminal that parses a bunch of images and puts them in the database. This script has already been written

Due to restrictions on my hosting (Bluehost) I cannot run a process for more than 5ish minutes. I'm wondering how to set it up so that I will quit out of the script every 5 minutes then maybe sleep for a bit, then reopen itself where it left off.

I was planning on using a cronjob to rerun the command but how do I resume where I left off?

Thanks, Matt Mueller

  • 写回答

4条回答 默认 最新

  • duanqin4238 2009-11-26 03:23
    关注

    Change your hosting provider....

    Write a script to dump all the image file names into a text file. Set script to read the text file and remove the file name from the text file every time you finish processing that image. Any time the process is killed it should be safe to re-start.

    评论

报告相同问题?

悬赏问题

  • ¥15 下图接收小电路,谁知道原理
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭
  • ¥15 2020长安杯与连接网探