Forum Discussion
Altera_Forum
Honored Contributor
20 years agocan't work as my think
Hi hippo. In a cgi program,I want to use one process to sent HTML page to answer IE as quickly as possible, and another process to execute local control. And they are happend almost at the same t...
Altera_Forum
Honored Contributor
20 years ago --- Quote Start --- originally posted by sdhnain@Jun 3 2006, 10:05 AM ok ok,
u want to let the ie user know that a button was pressed, and at the same time service the interuption,
well, as i had understand, the html response take no significant time.
ok, to overcome the problem with child and parent process, try this :
write a c code that do controls, compile it to produce a .exe and put it in /bin folder to be know as a commande lets say "control.exe".
in your cgi script invok the control code by the c primitive system :
system("control");
and then write your html response code.
i think with this method the control.exe will execute in the background.
but i still don't understand why it won't work with process http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/blink.gif
best regards http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/biggrin.gif
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=15840)
--- quote end ---
--- Quote End --- I tried what you said and had the same result. Maybe there are some things special to develop cgi progrm. what should I do? really don't understand why HTML page can't be sent out after the one process exit.