mcb827 has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I'm relatively new to Perl, I know enough to make minor changes to other people's work, and am in the process of creating my first major script. I finally got it to work properly on my own machine (for testing purposes) and when I try to test it on a "live" machine through RCMD, it is not allowing me to input text to be stored in STDIN. I know there's a way to do this using command arguments, but I'm a nerd and would really like to know why it's not working as it should through RCMD- and if possible, how to fix that. Please let me know if you have any ideas- or if I should paste my code in here (which, I'll admit could be done more effectively, but like I said, I'm new and just happy it (semi) works)

Replies are listed 'Best First'.
Re: RCMD not allowing STDIN
by samtregar (Abbot) on Feb 18, 2008 at 23:23 UTC
    Can you use ssh or (shudder) telnet instead? I think the reason you're having trouble using STDIN is that rcmd doesn't setup a pty the way ssh and telnet do. If for some reason you're committed to the r-tools you might try using rsh.

    -sam