I have a main.ksh that executes a perl script and which in turn spawns child ksh processes and awk scripts. I have main.ksh in crontab to run every 10 mins.
Is there a way to make sure that neither an earlier version of main.ksh or ANY OF ITS CHILD PROCESSES are running when crontab starts main.ksh.
Basically is there a ps option that lists out all the child processes of a parent process ?
Thanks for your help.
Is there a way to make sure that neither an earlier version of main.ksh or ANY OF ITS CHILD PROCESSES are running when crontab starts main.ksh.
Basically is there a ps option that lists out all the child processes of a parent process ?
Thanks for your help.