Invisible Process [modified]
-
Hi, Im writing a webserver which loads an exe file as cgi application. What im trying to do is not make the window popup each time someone visits the site. I still need the process visible in taskmanager though... Heres what im using at this point to load the cgi app and get the std out... which is what i need to do... char psBuffer[1024]; FILE *pPipe; send(AcceptSocket, header, strlen(header), 0); pPipe = _popen("test.exe", "r"); //..other functions _pclose( pPipe ); Any Help on this matter is appreciated.
-
Hi, Im writing a webserver which loads an exe file as cgi application. What im trying to do is not make the window popup each time someone visits the site. I still need the process visible in taskmanager though... Heres what im using at this point to load the cgi app and get the std out... which is what i need to do... char psBuffer[1024]; FILE *pPipe; send(AcceptSocket, header, strlen(header), 0); pPipe = _popen("test.exe", "r"); //..other functions _pclose( pPipe ); Any Help on this matter is appreciated.
I assume you've got a console window popping up. If you make the exe a normal Win32 project instead of a console one you will not get a console window popping up.
Steve
-
I assume you've got a console window popping up. If you make the exe a normal Win32 project instead of a console one you will not get a console window popping up.
Steve
Thnx.. I dont think thats going to help in this situation.. because if users were to write thier own cgi.. they would have to do the same.. and such is too much to ask in my opinion... Theres got to be another way to hide the bloody window...
-
Hi, Im writing a webserver which loads an exe file as cgi application. What im trying to do is not make the window popup each time someone visits the site. I still need the process visible in taskmanager though... Heres what im using at this point to load the cgi app and get the std out... which is what i need to do... char psBuffer[1024]; FILE *pPipe; send(AcceptSocket, header, strlen(header), 0); pPipe = _popen("test.exe", "r"); //..other functions _pclose( pPipe ); Any Help on this matter is appreciated.
Assuming you're on XP (or better..) can't you just run your Web Server as a different user - this way the web server will have a seperate desktop, on which any cgi programs will run
-- Help me! I'm turning into a grapefruit! Buzzwords!