more useful options | |
PerlMonks |
SFTP and the Pointy-Haired managerby FatDog (Beadle) |
on Jul 07, 2004 at 23:25 UTC ( [id://372606]=perlquestion: print w/replies, xml ) | Need Help?? |
FatDog has asked for the wisdom of the Perl Monks concerning the following question:
We have a product manager who wants us to push a report file to a customer every week. We told him we could do it with "FTP" to either our internal FTP server or to a FTP service at the customers site.
He went out and with great effort got the IT guys at the customer site to provide us with ... a SFTP account. ("FTP", "SFTP", what's the difference?) ... grrrr Several months ago my boss (a decent guy) tried to install Net::SFTP and ran into all the dependencies that make it a pain to install. After a lost day of productivity, he does not want to try again. So I am stuck in the middle. I pray for guidence. How can I get SFTP to work from a Perl script under Linux WITHOUT installing Net::SFTP? Yes, if I setup a trust-key relationship it would be a simple system call to run "sftp file_name name@server:" - but there is no way the customer would do that. (Their IT guys had a fit because we put the date into the report file-name and they prefer to limit the account to 1 or 2 fixed file names. - Paranoid but I respect them for that.) Someone suggested I use Expect::Simple as a wrapper around the sftp progam to feed in the password. Has anyone done this?
Back to
Seekers of Perl Wisdom
|
|