On Sat, 2 Sep 2000, Gene Wilburn wrote:
> On Fri, 1 Sep 2000, Steven W. Orr wrote:
>
> > You need to write your script to run scp in the expect scripting
> > language. Expect is an extention of tcl. Easy to use and easy learn. Your
> > problem is that the request for the password is not supposed to come from
> > stdin; it's supposed to come from /dev/console. Expect starts child
> > processes which have an attached pair of psuedo terminals whih it has full
> > control over.
>
> As I wrote in the original message, I'm already writing out the scp
> portion of my Perl script as an expect script and executing that from
> within Perl. I'd rather do the whole process within Perl itself since the
> majority of the script does a lot Perlish-oriented admin work that I
> wouldn't enjoy re-writing in tcl. Ideally I'd like to hear of a way to
> feed the password to scp via Perl.
>
> Has anyone been able to automate an scp script, including feeding it a
> password, using Perl or Bash?
>
I've never done it, but you should be able to use OPEN3, which can open
for input AND output.
-------------------------------------------------------------------
DDDD David Kramer http://kramer.ne.mediaone.net
DK KD
DKK D On a cellular level, I'm actually quite busy!
DK KD
DDDD
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list