ibm mainframe C++, Rsh help

Discussion in 'C++' started by mcna, Jul 31, 2007.

  1. mcna

    mcna New Member

    Jul 31, 2007
    Likes Received:
    Trophy Points:
    if any1 can help i would very greatful,
    i am creating a program, i want to run a command on a remote machine using rsh.

    i can use popen to do this, but if the ip address is wrong it hangs 4ever. Not what i want.

    so i have desided to use the fork and execl as this means that if rsh hangs i can time out.

    but i cant get the rsh output to pipe back, i am expecting the commands from the remote batch file i am running to be to be outputed. Rsh works because i have it create 2 file so i know it has worked, but no output.

    using popen i do get output but i dont want it 2 be able 2 hang 4ever.

    Thx 4 all ur help

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice