Calling Another Application From Perl
- From: "M" <no_spam@xxxxxxxxx>
- Date: Sat, 16 Aug 2008 20:52:20 -0500
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;
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?
M
.
- Follow-Ups:
- Re: Calling Another Application From Perl
- From: Eric Pozharski
- Re: Calling Another Application From Perl
- From: xhoster
- Re: Calling Another Application From Perl
- Prev by Date: Re: FAQ 4.75 How do I define methods for every class/object?
- Next by Date: Re: FAQ 4.2 Why is int() broken?
- Previous by thread: FAQ 4.75 How do I define methods for every class/object?
- Next by thread: Re: Calling Another Application From Perl
- Index(es):
Relevant Pages
|