Re: Calling Another Application From Perl
- From: xhoster@xxxxxxxxx
- Date: 17 Aug 2008 02:20:35 GMT
"M" <no_spam@xxxxxxxxx> wrote:
I want to call scp to transfer a file to another server.
open(OUT, "|scp $backup_file $user\@$server:./");
print OUT "$pass\n";
close OUT;
You can probably configure scp to use stored ssh keys, no passwords
required.
This does not work though. SCP does not allow to specify the password
rather it prompts for it. Is there anyway to answer the prompt for
password with perl?
Expect.pm
Xho
--
-------------------- http://NewsReader.Com/ --------------------
The costs of publication of this article were defrayed in part by the
payment of page charges. This article must therefore be hereby marked
advertisement in accordance with 18 U.S.C. Section 1734 solely to indicate
this fact.
.
- References:
- Prev by Date: Re: FAQ 4.2 Why is int() broken?
- Next by Date: Re: This is very OT, and its just a request. It has to do with Ashton Tate Framework 2/PC World contest in the 1980's
- Previous by thread: Calling Another Application From Perl
- Next by thread: Re: Calling Another Application From Perl
- Index(es):
Relevant Pages
|