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 than one, then die.... R At 11:18 30/09/2002 +0200, 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 possibility to check weather the script is already running? >Maybe i can use a system command in the crontab? > >any help welcoe > >greets Johannes > >-- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]