grab system() call output

Discussion in 'C++' started by 131.96.106.128 [johnny], Jul 24, 2003.

  1. Hi all,

    anyone knows how to put the output of a system() or exec() call into buffer without using a temp file?

    Thanks

    ==================================
    Poster's IP address: 131.96.106.128
    Posted via http://nodevice.com
    Linux Programmer's Site
     
    131.96.106.128 [johnny], Jul 24, 2003
    #1
    1. Advertising

  2. <131.96.106.128 [johnny]> wrote...
    > anyone knows how to put the output of a system() or exec() call into

    buffer without using a temp file?

    There is no way in the Standard C++. Use pipes if your system
    supports them. Ask in a newsgroup for your OS.

    Victor
     
    Victor Bazarov, Jul 24, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Patrick L. Nolan

    Grab input&output of program on Windows

    Patrick L. Nolan, Jan 6, 2004, in forum: Python
    Replies:
    2
    Views:
    393
    Patrick L. Nolan
    Jan 6, 2004
  2. v4vijayakumar

    Extracting output from system(3) call

    v4vijayakumar, May 13, 2006, in forum: C Programming
    Replies:
    18
    Views:
    448
    Kevin Bagust
    May 15, 2006
  3. Wes Gamble
    Replies:
    2
    Views:
    125
    Robert Klemme
    Jun 19, 2009
  4. Jerry Mr
    Replies:
    10
    Views:
    221
    Brian Candler
    Oct 8, 2009
  5. Andrea Spitaleri

    grab output shell

    Andrea Spitaleri, Jun 7, 2004, in forum: Perl Misc
    Replies:
    4
    Views:
    107
    Joe Smith
    Jun 7, 2004
Loading...

Share This Page