Re: [Fwd: Making system Calls ??]

Erik Van Riper (geek@midway.com)
Fri, 10 Jan 1997 09:43:49 -0800 (PST)

To subscribers of the xforms list from geek@midway.com (Erik Van Riper) :

Terry Moore claimed:
>
> To subscribers of the xforms list from Terry Moore <tmoore@krusty.dseg.ti.com> :
>
> I can not seem to find the secret for making system calls.
>
> If I use a callback functions for a button
> and do system("who");
> the output goes to stdio. ( the active win )
>
> I would like to capture this output and output it into
> a textbox.
>
> I am trying to learn xforms by wrapping a GUI around things
> like
> who, whoami, ping, ifconfig , top ...
>
> I am out of Ideas

Easy... take a look at popen()

-- 
Erik Van Riper (EV34)                    Systems / Network Administrator
Midway Home Entertainment Inc.                     San Diego, California
(619) 658 9500 (x110)                    
Go player.