Read the man page on the popen command in C. If you are familiar with
Perl, it is the same thing as:

        open (OUTPUT,"traceroute dest.domain.com |");

-Steve

ps. linux-net really isn't the place for this sort of question. You
may want to check into some CGI programming newsgroups/mailing list.
Good luck...


On Wed, Oct 21, 1998 at 08:42:24PM +0200, Radim HABALA wrote:
> 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?
> 
> 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.... 
> 
>                                        +-----------------------------------+
>                                        |                                   |
>                                        |            Radim HABALA           |
>                                        |                                   |
>                                        |   e-mail:   [EMAIL PROTECTED]    |
>                                        |                                   |
>                                        |   Englisova 13, OPAVA,  746 01    |
>                                        |      Czech Republic (Europe)      |
>                                        |                                   |
>                                        |   tel :  (0653)   21 46 34        |
>                                        |                                   |
>                                        +-----------------------------------+
> 
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-net" in
> the body of a message to [EMAIL PROTECTED]

-- 
______________________________________________________________________________
Steve Shah ([EMAIL PROTECTED]) | SysAdmin/Coder/Gabbernaut/DJ/Writer/Minister
http://www.cs.ucr.edu/~sshah  | We're not dropping out, we're infiltrating.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      Beating code into submission, one operating system at a time...
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to