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?

Gene

-----------------------------------
Gene Wilburn -}{- [EMAIL PROTECTED]
  http://www.NorthernJourney.com
-----------------------------------



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to