RE: using Sleep instead of Cron

2004-05-18 Thread Bob Showalter
Wiggins d Anconia wrote: > cron can be installed as part of the Cygwin distro, not sure about > other ways. The M$ products come with a scheduler as well, but you > have now exhausted my knowledge of it ;-) The MS "at" service blows huge chunks. There is a cron for Windows at http://cronw.so

Re: using Sleep instead of Cron

2004-05-18 Thread Wiggins d Anconia
> > My main concern was that the script would die from SIGALARM. I'm testing on > and XP box and using the script on a FreeBSD box. How can I get the cron > function on my XP box? > In general this is a bad idea, aka developing/testing on a different platform than where it will run eventuall

Re: using Sleep instead of Cron

2004-05-18 Thread Motherofperls
My main concern was that the script would die from SIGALARM. I'm testing on and XP box and using the script on a FreeBSD box. How can I get the cron function on my XP box? Also I have to get admin permission for cron jobs. Which I don't think will be a problem. It's not important that th

Re: using Sleep instead of Cron

2004-05-18 Thread Wiggins d Anconia
> > Hi all, > > I'm writing a script which fetches data every hour. I thought instead of > using cron which is platform dependent, to use sleep and a goto statement. Is > there any downfalls to this? Sure, all of the differences between a one-off script and a constantly running program. cro

Re: using Sleep instead of Cron

2004-05-18 Thread Jose Alves de Castro
On Tue, 2004-05-18 at 16:02, [EMAIL PROTECTED] wrote: > Hi all, > > I'm writing a script which fetches data every hour. I thought instead of > using cron which is platform dependent, to use sleep and a goto statement. Is > there any downfalls to this? Other downfalls: - Cron has automatic e-

Re: using Sleep instead of Cron

2004-05-18 Thread Jose Alves de Castro
On Tue, 2004-05-18 at 16:02, [EMAIL PROTECTED] wrote: > Hi all, > > I'm writing a script which fetches data every hour. I thought instead of > using cron which is platform dependent, to use sleep and a goto statement. Is > there any downfalls to this? Yes. With sleep, once the machine is res

using Sleep instead of Cron

2004-05-18 Thread Motherofperls
Hi all, I'm writing a script which fetches data every hour. I thought instead of using cron which is platform dependent, to use sleep and a goto statement. Is there any downfalls to this? At the start of the script I check to see if it was ran in the previous hour. BEGINNING: if(open(TIMECHEC