[Pharo-project] How to run a "cron" job?
Hi folks, I need to run a periodic job in a Pier image. (Checking for new PDF files and generating news items.) What is the recommended way to do this? Thanks in advance for any tips. - on
http://squeak.saltypickle.com/Scheduler 2009/6/6 Oscar Nierstrasz <oscar@iam.unibe.ch>
Hi folks,
I need to run a periodic job in a Pier image. Â (Checking for new PDF files and generating news items.)
What is the recommended way to do this?
Thanks in advance for any tips.
- on
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
One way this is often done is to create a url that, when accessed, executes the periodic code you want and replies with a short status. Then create a crontab job on any host you like using curl to fetch that url on a schedule. Works on all web development environments and has the bonus that you can 'kick it' from any web browser if you want it done on demand. -Todd Blanchard On Jun 6, 2009, at 2:46 AM, Oscar Nierstrasz wrote:
Hi folks,
I need to run a periodic job in a Pier image. (Checking for new PDF files and generating news items.)
What is the recommended way to do this?
Thanks in advance for any tips.
- on
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Thanks! I'm embarrassed I did not think of that. I already have the web interface -- just need a fixed url to trigger it. - on On Jun 6, 2009, at 21:49, Eagle Offshore wrote:
One way this is often done is to create a url that, when accessed, executes the periodic code you want and replies with a short status. Then create a crontab job on any host you like using curl to fetch that url on a schedule. Works on all web development environments and has the bonus that you can 'kick it' from any web browser if you want it done on demand.
-Todd Blanchard
On Jun 6, 2009, at 2:46 AM, Oscar Nierstrasz wrote:
Hi folks,
I need to run a periodic job in a Pier image. (Checking for new PDF files and generating news items.)
What is the recommended way to do this?
Thanks in advance for any tips.
- on
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
participants (3)
-
Eagle Offshore -
Hernán Morales Durand -
Oscar Nierstrasz