Chris Hedemark on Tue, 04 Feb 2003 22:41:03 -0500


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Perl question


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Tuesday, February 4, 2003, at 06:20 PM, Beldon Dominello wrote:

I'm working on a Perl program which will use an external utility (scp) to copy
a file from another server to the one it's on. The problem is the utility
asks for a password, and the Perl script must respond to it. I know there's
an "Expect" PM I can use, but it's not on the machine currently and I'd like
to avoid the fight I'll get over adding more Perl modules (they already hate
that I'm using Perl, despite the fact that it's already on the machine).

Don't bother using passwords at all. Use keys. OpenSSH has all the tools to do it, and there is a perl module to work with scp directly (Net::SCP) at http://search.cpan.org/author/IVAN/Net-SCP-0.06/SCP.pm


Chris Hedemark
PGP/GnuPG Public Key at http://yonderway.com/chris/hedemark.gpg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (Darwin)

iD8DBQE+QISdYPuF4Zq9lvYRAjE4AJ9KKXtPvqHqpCmQXV0G2BTIFK8rBwCgnOSe
5xDBMKZcg6mwZ8xPcAnfnOY=
=YJbb
-----END PGP SIGNATURE-----

_________________________________________________________________________
Philadelphia Linux Users Group        --       http://www.phillylinux.org
Announcements - http://lists.netisland.net/mailman/listinfo/plug-announce
General Discussion  --   http://lists.netisland.net/mailman/listinfo/plug