Re: how to know weather perl script is already running?

2002-09-30 Thread david
Theuerkorn Johannes wrote: > Hello List, > > i have a perl script that i have running from a cron Job. It usually opens > every 4 hours. But sometimes it takes the script longer to execute its job > so after cron opens up the perl script as usual, i have two perl jobs > running. Is there any pos

RE: how to know weather perl script is already running?

2002-09-30 Thread Jeff AA
> -Original Message- > From: Theuerkorn Johannes [mailto:[EMAIL PROTECTED]] > Sent: 30 September 2002 10:18 > To: '[EMAIL PROTECTED]' > Subject: how to know weather perl script is already running? > > > Hello List, > > i have a perl script that i have running from a cron Job. It > us

Re: how to know weather perl script is already running?

2002-09-30 Thread Robin Cragg
There are two easy ways... If your file creates a lock file when it starts and removes it when it finishes, a chec to see if the file exists will tell you if the script is already running./ On linux / unix systems do a ps and looks for any occurrances of your script name. If there are more t