1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

ibm mainframe C++, Rsh help

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

  1. mcna

    mcna New Member

    Joined:
    Jul 31, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Pls
    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