RE: Continuously running scripts question

2010-06-28 Thread jyoung79
Thank you all very much for your replies. Appreciate your thoughts. I'll check this out. Thanks. Jay -- > On 2010-06-25, Tim Harig wrote: >> It sounds to me, since your script is acting on an event, that it >> would benefit from using something like inotify, or whatever your >> system equiv

Re: Continuously running scripts question

2010-06-27 Thread Peter H. Coffin
On Sun, 27 Jun 2010 16:21:25 +1200, Lawrence D'Oliveiro wrote: > In message , Ian Kelly > wrote: > >> I use cron. >> >> Con: Most cron implementations have a maximum frequency of once per >> minute. > > Another con is: what happens if a run takes longer than the invocation > frequency? Not cro

Re: Continuously running scripts question

2010-06-26 Thread Lawrence D'Oliveiro
In message , Ian Kelly wrote: > I use cron. > > Con: Most cron implementations have a maximum frequency of once per > minute. Another con is: what happens if a run takes longer than the invocation frequency? -- http://mail.python.org/mailman/listinfo/python-list

Re: Continuously running scripts question

2010-06-25 Thread Kushal Kumaran
- Original message - > Currently, I have some scripts (in particular, applescript > 'stay-open' scripts) that run continuously on a Mac through > the day.  They look in a certain folder every 30 seconds and > perform the necessary work needed. > Take a look at inotify. Maybe it fits

followup links (Re: Continuously running scripts question)

2010-06-25 Thread Tim Harig
On 2010-06-25, Tim Harig wrote: > It sounds to me, since your script is acting on an event, that it > would benefit from using something like inotify, or whatever your > system equivilant would be (FSEvents for Mac? FAM framework for general > POSIX. There are python modules available.), so that y

Re: Continuously running scripts question

2010-06-25 Thread Tim Harig
On 2010-06-25, wrote: [order modified] > I was curious if anyone here on the list does anything similar > with Python? If so, do you use launchd, cron, etc in order to > start up your Python script at the appropriate time(s)? Or do > you just let your Python code run continuously? I'm curi

Re: Continuously running scripts question

2010-06-25 Thread Ian Kelly
On Fri, Jun 25, 2010 at 9:49 AM, wrote: > Currently, I have some scripts (in particular, applescript > 'stay-open' scripts) that run continuously on a Mac through > the day.  They look in a certain folder every 30 seconds and > perform the necessary work needed. > > I was curious if anyone here o