I have to execute a unix command and get the output in .d file. I
tried using system, tu_fork_process and tu_fork_process2, but was
unable to get the desired output. It didnot give any error but I was
not able to get the ouput of these commands.
I tried searching internet but didnt succeed.
My seceario is as follows:
1. Window is open.
2. User clicks on the menu.
3. It should check if a process is running
4. If YES then stop them from execution.
5. If NO then carry on with the other scenario.
Please help me.
> I have to execute a unix command and get the output in .d file. I
> tried using system, tu_fork_process and tu_fork_process2, but was
> unable to get the desired output. It didnot give any error but I was
> not able to get the ouput of these commands.
Have you tried calling C's popen routine if it's available on your
platform? If you're on Unix then this is probably a Unix programming
FAQ when attempting it from C code; using TeleUSE's D is just a
distraction.
Cheers,
--
Ralph Corderoy. http://inputplus.co.uk/ralph/ http://troff.org/