running scp or rsync from a script
Chris Purcell
redhat at cjp.us
Wed Jul 28 18:09:49 UTC 2004
> If you don't want to do that, then you might look at Expect, which is
> another scripting language. It allows you to program the password into
> the script file in a pseudo-interactive manner. http://expect.nist.gov/
I know nothing about Expect, but I found a module on CPAN called
Net::SCP::Expect which is a wrapper for scp that allows passwords via
Expect. It works great.
Thanks,
Chris
More information about the redhat-list
mailing list