Re: Net::SCP is saving a file name with a wild card

2011-04-28 Thread C.DeRykus
On Apr 28, 9:31 am, dthack...@gmail.com (Dave Thacker) wrote: > Hi, > I need to pull a file or files down every day that contain a specific > string.   Here's my code. > > #!/usr/bin/perl > use strict; > use Net::SCP; > > my $scp=' '; > open (LOG, ">>/home/wesaysopost/logs/retrieve-wesayso-results.

Re: Net::SCP

2008-09-22 Thread Dermot
2008/9/22 Vyacheslav Karamov <[EMAIL PROTECTED]>: > Dermot пишет: >> >> Hi, >> >> I installed Net::SCP as I was reminded of the module in a recent post. >> >> I need to copy files from one server to another. I generated ssh-keys >> for a user and I can use >> >> scp test.txt myserver:/home/somedud

Re: Net::SCP

2008-09-22 Thread Vyacheslav Karamov
Dermot пишет: Hi, I installed Net::SCP as I was reminded of the module in a recent post. I need to copy files from one server to another. I generated ssh-keys for a user and I can use scp test.txt myserver:/home/somedude/mytest.txt without passwords when I su to that user but when I run the

Re: Net::Scp

2004-01-17 Thread Wiggins d'Anconia
Paul Kraus wrote: I am using the code below. When I run the script if I run it for just one file then everything works fine. It asks me for my passpharase and copies perfectly. If I uncomment both scp -> iscp statements and run the script it asks me for the first one and then locks on the question

Re: Net -> SCP - errstr uninitialized

2004-01-05 Thread R. Joseph Newton
Paul Kraus wrote: > Code > > #!/usr/bin/perl > > use strict; > use warnings; > > &dhcpd; > > sub dhcpd { > use Text::DHCPparse; > use Net::SCP qw( scp iscp ); > my $scp = Net::SCP -> new( 'hylafax', 'pkraus' ); Could it be that you are using or die one line too late? Joseph -- To u

Re: Net -> SCP - errstr uninitialized

2004-01-05 Thread drieux
On Jan 5, 2004, at 12:32 PM, drieux wrote: On Jan 5, 2004, at 10:49 AM, Paul Kraus wrote: Code #!/usr/bin/perl use strict; use warnings; &dhcpd; sub dhcpd { use Text::DHCPparse; use Net::SCP qw( scp iscp ); my $scp = Net::SCP -> new( 'hylafax', 'pkraus' ); $scp -> get ( 'dhcpd.leases

Re: Net -> SCP - errstr uninitialized

2004-01-05 Thread drieux
On Jan 5, 2004, at 10:49 AM, Paul Kraus wrote: Code #!/usr/bin/perl use strict; use warnings; &dhcpd; sub dhcpd { use Text::DHCPparse; use Net::SCP qw( scp iscp ); my $scp = Net::SCP -> new( 'hylafax', 'pkraus' ); $scp -> get ( 'dhcpd.leases' ) or die $scp->{errstr}; print "hello\n