Question : how to stop a task in crontab to run if the previous instance has been still running in AIX?

Hello,

In AIX, is there a way to stop a a scheduled task in crontab to run if the just previous instance has been still running?

Thanks

Answer : how to stop a task in crontab to run if the previous instance has been still running in AIX?

you could always write a script that checks for a lock file, the first script writes the lock file and deletes it when done, the second file doesnt start if the lock fil exists, just a simple and could be empty file, and  a small check if its there or not.
Random Solutions  
 
programming4us programming4us