How to run a "cron" job?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

How to run a "cron" job?

Oscar Nierstrasz

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
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: How to run a "cron" job?

hernanmd
http://squeak.saltypickle.com/Scheduler

2009/6/6 Oscar Nierstrasz <[hidden email]>

>
> 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
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: How to run a "cron" job?

Eagle Offshore
In reply to this post by Oscar Nierstrasz
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
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: How to run a "cron" job?

Oscar Nierstrasz

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
>> [hidden email]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project