Sorry. I didn't understand. You could install something like
perl-Expect.pm-1.07-2

Does this help?

-- 
-Time flies like the wind. Fruit flies like a banana. [EMAIL PROTECTED]
-Stranger things have happened but none stranger than this. Steven W. Orr-
Does your driver's license say Organ Donor?Black holes are where God \
-------divided by zero. Listen to me! We are all individuals!---------


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?
=>
=>Gene



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

Reply via email to