Radim HABALA wrote:
[NB: this question would be better addressed to the list
[EMAIL PROTECTED]]
> Hi, I have an question in C: How can i handle output of running process?
>
> Example: when creating CGI script in C, i need to run traceroute and
> put out traceroute's output (maybe changed). Is there cany possibility?
Yes. Use popen("traceroute", "r").
> In alphas there is an C function fork-pty, which forks program and creates
> an pipe connecting childs I/O with an usable file/descriptor. Is there any
> possibility in Linux how to do this? I am sure telnet deamon uses this
> (runs shell, takes it's I/O and transfer it through net pipe to client....
You don't need to use a pty for this; a pipe is sufficient.
--
Glynn Clements <[EMAIL PROTECTED]>
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]