[comp.lang.perl] running rsh and rcp from perl

meggers@mothra.nts.uci.edu (Mark Eggers) (03/02/91)

I've got a quick question.

While I can do

system "rsh foo \"command here\"";

I cannot run this in a perl script in the background.  The error that comes
back is

stopped +tty input+

What I would like to do is copy a file from the remote site, and execute
the entire script from cron.

Thoughts ??

Script is being run on a sparc (perl 3.44) talking to a Sequent.

thanks for any ideas . . . . /mde/

rbj@uunet.UU.NET (Root Boy Jim) (03/02/91)

In article <27CEF303.10808@orion.oac.uci.edu> meggers@mothra.nts.uci.edu (Mark Eggers) writes:
?While I can do		system "rsh foo \"command here\"";
?
?I cannot run this in a perl script in the background.  The error that comes
?back is		stopped +tty input+

You need the -n option to rsh.
-- 
		[rbj@uunet 1] stty sane
		unknown mode: sane