Re: Calling Another Application From Perl



"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.
.



Relevant Pages

  • What is Location of Online Help Files
    ... We have a proxy server that prompts us for passwords, ... everytime we access the internet to retrieve the help ...
    (microsoft.public.office.setup)
  • Re: Constantly being prompted for network password
    ... I verified my email passwords with my ISP provider. ... prompted for the passwords for all of my email accounts. ... I was unable to run Outlook in safe mode. ... How can I stop these prompts from coming up? ...
    (microsoft.public.outlook.general)
  • Re: Memorizing password
    ... doesnt work - any new site/pw combo prompts me. ... save passwords. ... >> again as to whether I want to memorize the PW. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Password resetting problem. Pls help
    ... looking for something automatic that prompts them because if their ... passwords expire they wont be able to get onto webmail access. ...
    (microsoft.public.windows.server.active_directory)
  • Re: SCP
    ... >I want to use SCP to copy files between two machines. ... >to ask for passwords? ... root to login between machines without demanding a password. ...
    (comp.security.ssh)