Dear All,
I have a script (scr1)that collects data from various systems in our environment every morning. This script A actually collects data and another Script (scr2) generates a web page for our level 1 team to see the status of the adapters. If the level 1 team wanted to know the latest status, I have given an option to click on a button, on clicking on a button it triggers a ksh script scr2 in cgi-bin directory which inturn calls scr1 which goes and collects the data and generates the webpage on need basis. The actual webpage generation code is in scr2, so after scr1 execution is completed, the control needs to come to scr2 to continue generating the webpage based on the latest collected data.
The scr1 & scr2 work fantastic when I execute from command line. But when I click on the button on the browser, I can see a process for scr2 and then a process for scr1 (with scr2's pid as parent pid) which collects the data, but suddenly the parent process (running scr2) seems to disappear and the child process still continues. The only thing I have observed is when scr1 (Child process) collects data from a server in line number 50 or around this line, the parent dies..
Do anyone of you have seen anything like this before.. please let me know how to go about..
Also I would want to possibly trace the parent process, can you recommend which is the easiest way to do this
TIA
I have a script (scr1)that collects data from various systems in our environment every morning. This script A actually collects data and another Script (scr2) generates a web page for our level 1 team to see the status of the adapters. If the level 1 team wanted to know the latest status, I have given an option to click on a button, on clicking on a button it triggers a ksh script scr2 in cgi-bin directory which inturn calls scr1 which goes and collects the data and generates the webpage on need basis. The actual webpage generation code is in scr2, so after scr1 execution is completed, the control needs to come to scr2 to continue generating the webpage based on the latest collected data.
The scr1 & scr2 work fantastic when I execute from command line. But when I click on the button on the browser, I can see a process for scr2 and then a process for scr1 (with scr2's pid as parent pid) which collects the data, but suddenly the parent process (running scr2) seems to disappear and the child process still continues. The only thing I have observed is when scr1 (Child process) collects data from a server in line number 50 or around this line, the parent dies..
Do anyone of you have seen anything like this before.. please let me know how to go about..
Also I would want to possibly trace the parent process, can you recommend which is the easiest way to do this
TIA