I have a master shell which will be running in cron tab.It will pick the files from certain directory and call subshell (Child Shell).This subshell / Child Shell runs in the background.
My problem is once if the master shell picks the file and passes it to subshell,it should go to some wait state.
The subshell should do some initial processing on the file and it should pass signal so the master shell should continue its work.
Is there any way of built-in implementation of this semaphores in HP-UX.?
Please guide me any suitable way to accomplish the given task.
You will have to modify the sub shell to create sephamore file in to let you know that the part of the process you wanted to be completed in the sub shell is done.
For eg. in the sub_shell.sh
statement 1
statement 2
statement 3 #suppose you want the parent shell to know that it has reached this state in the process
# Create the file