If you are using cygwin, then why don't you use the perl in cygwin instead of using activestate? Then you can install cpan modules directly using cygwin.
On Fri, 2006-04-21 at 16:36 -0600, siegfried wrote: > I apologize, I forgot to mention something very important: I am using > cygwin's cron on Win2003 Server. > > I tried using Unix::PID but ppm.bat for ActiveState Perl could not find it. > Sieg > > -----Original Message----- > From: JupiterHost.Net [mailto:[EMAIL PROTECTED] > Sent: Friday, April 21, 2006 2:45 PM > To: beginners@perl.org > Subject: Re: How to prevent duplicate cron jobs? > > > > siegfried wrote: > > I have a cron job running perl and it is taking a very long time -- > > sometimes over 24 hours. > > > > How can I have cron schedule my job daily, or even hourly, and have the > perl > > code exit if a previouse instance of the job is still running? > > perldoc Unix::PID > > # job.pl that gets cron'ed: > > #!/usr/bin/perl > > use strict; > use warnings; > use Unix::PID '/var/run/job.pid'; > > # your code here # > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > <http://learn.perl.org/> <http://learn.perl.org/first-response> > > > -- Kenneth A. Wolcott Cloudshield Technologies, Inc. 212 Gibraltar Drive Sunnyvale, CA 94089 [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>