SCP help
From: John Pretti (john_at_web-connected.com)
Date: 05/26/04
- Next message: DBSMITH_at_OhioHealth.com: "Re: entering text within a file"
- Previous message: lktee_at_bantex.com.my: "RE:How to find same filename in subdirectory"
- Next in thread: Wiggins D Anconia: "Re: SCP help"
- Maybe reply: Wiggins D Anconia: "Re: SCP help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: <beginners@perl.org> Date: Wed, 26 May 2004 13:53:45 -0500
All,
I have developed a CGI that will take information from a CGI based form and
SCP a specific file to a remote server. I am having some troubles and I
think I need to escape something. Anyone have any ideas? Snippet of code is
as follows:
# SCP commands
my $scp_cmd = "/usr/bin/scp";
my $scp_opts = "-i /root/.ssh/identity ";
# Promote the file to merlin
system(`$scp_cmd $scp_opts $src_dir/*
rdwebadmin\@x.x.x.x:/$directories_map{$q->param("promdir")}`);
Error:
Wed May 26 13:47:47 2004] promote.cgi: Execution of
/www/web/cgi-sec/merlin/promote.cgi aborted due to compilation errors.
Warning: Identity file /root/.ssh/identity does not exist.
Host key verification failed.
lost connection
[Wed May 26 13:48:55 2004] [error] [client 199.159.140.172] Premature end of
script headers: /www/web/cgi-sec/merlin/promote.cgi
If I do the above command from the command line all works perfectly. Thanks
in advance.
Regards,
John
- Next message: DBSMITH_at_OhioHealth.com: "Re: entering text within a file"
- Previous message: lktee_at_bantex.com.my: "RE:How to find same filename in subdirectory"
- Next in thread: Wiggins D Anconia: "Re: SCP help"
- Maybe reply: Wiggins D Anconia: "Re: SCP help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|