Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have tried doing rsh on the prompt and it works fine. But when I run this code, $err returns "Connection closed". Any help is much appreciated.#my $cmd = "$rsh_cmd -l $user $host \"$perl_loc - $main::sc_destdir @m +ain::sc_destsubdirs\"\n"; my ($in, $out, $err) = (gensym(), gensym(), gensym()); my $pid = open3($in, $out, $err, $cmd); my $sis_fname = $main::fp_syscheck_install_status_pl; # above is another local perl script which is to be run on remote mach +ine my $fh = new FileHandle "<$sis_fname"; die "Unable to open $sis_fname" unless ($fh); my @sis = <$fh>; print $in @sis; close ($in);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: IPC::open3 on linux with kerberos authentication
by shmem (Chancellor) on May 24, 2007 at 12:43 UTC |