|
From: SourceForge.net <no...@so...> - 2005-06-07 13:55:36
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=3189803 By: lionelb Greetings, I am developing a program using MinGW/gcc on Win2k which pipes commands to Gnuplot (http://www.gnuplot.info/). This works fine if I use popen() to open a pipe to a subprocess running pgnuplot.exe (the Win32 pipe version of the Gnuplot binary). Problem is that is that as soon as my program terminates, so does the subprocess; I would like to be able to keep the Gnuplot window open - i.e. keep the subprocess running after termination of the parent process, much as the system() call does. I can achieve this eg. under Cygwin, using fork(), pipe(), exec(), dup2(), ... by exec-ing pgnuplot.exe as a background process (using "&" in the command line passed to exec()). Can I achieve the same under MinGW via popen(). I suspect I might be able to using the Win32 _pipe(), _spawn(), etc., but there lies a world of pain... Any ideas appreciated, -- Lionel B ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=286529 |