Hello all
After creating a (real large) CGI application I am considering to split it up into specialized tasks in order to enhance speed & efficiency. As usual I am using tiny code snippets to test the viability of my ideas. And I am failing at the very first step.
The main idea is to have a small CGI working as a dispatcher, gathering the GET or POST data, putting it somewhere and selectively shelling out to the chunk that does the real work. I am failing with PB's shell function:
HTML calling test1.exe:
The second program test2.exe:
Looks simple, is simple, but creates two zombies "test1.exe" and "test2.exe" in the server's process list, that can't be terminated. I have to restart the server. BTW, I am using Apache 2.02. Any ideas what I am doing wrong?
Cheers
Albert
After creating a (real large) CGI application I am considering to split it up into specialized tasks in order to enhance speed & efficiency. As usual I am using tiny code snippets to test the viability of my ideas. And I am failing at the very first step.
The main idea is to have a small CGI working as a dispatcher, gathering the GET or POST data, putting it somewhere and selectively shelling out to the chunk that does the real work. I am failing with PB's shell function:
HTML calling test1.exe:
Code:
#compile exe #dim all function pbmain() as long shell "test2.exe" end function
Code:
#compile exe #dim all function pbmain() as long stdout "Content-type: text/html" stdout "" stdout "<html>" stdout "<head>" stdout "</head>" stdout "<body>" stdout "Here I should appear!<br>" stdout "</body>" stdout "</html>" stdout "" end function
Cheers
Albert
Comment