Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Teleuse Document

1 view
Skip to first unread message

Anurag Agarwal

unread,
Dec 22, 2004, 3:38:56 AM12/22/04
to
Hi,

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.

Ralph Corderoy

unread,
Dec 22, 2004, 6:20:31 PM12/22/04
to
Hi Anurag,

> 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/

0 new messages