You are here: Re: Multiple jobs from single cron. « PHP Programming Language « IT news, forums, messages
Re: Multiple jobs from single cron.

Posted by iulian.ilea on 09/23/06 21:47

Paul Lautman wrote:
> One of the web hosts that I use allows a single cron job to run. I need to
> run more than one scheduled job using this single launch.
> Now I could just include the jobs into the one cron job, but if one abended
> for any reason, then the second one wouldn't run.
>
> I have seen some posts advising the use of fork and others advising the use
> of popen.
>
> Ideally I'd like the initial cron job to read a database table and launch
> separate jobs based on entries in the table that would all run to conclusion
> independantly of each other.
>
> I'd like some ideas of what is the best way to accomplish this?
>
> TIA
>
> Paul
I'm not sure if it can be done, but this is my ideea: cronjobs are
stored in a file, from what I know. So, let's say you have a list of
cronjobs to be executed at a certain time. If you have acces to the
file where cron jobs for your account are stored, edit that file from
php script after every execution. I repeat, it's just an ideea and I
have never tested it.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация