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 (LO

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

2011-04-28 Thread Dave Thacker
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.log") or die "Can't open logfile&q

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 us

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

Net::SCP

2008-09-19 Thread 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 script as

Re: Net::Scp

2004-01-17 Thread Wiggins d'Anconia
ion proceed [y/N] for the second I have to kill the cmd window to get back. Any thoughts? #!/usr/bin/perl use strict; use warnings; use Net::SCP qw / scp iscp /; my $leases = 'hylafax:/var/state/dhcp/dhcpd.leases'; my $access = 'hylafax:/usr/local/squid/var/logs/access.log'; my

Net::Scp

2004-01-16 Thread Paul Kraus
for the second I have to kill the cmd window to get back. Any thoughts? #!/usr/bin/perl use strict; use warnings; use Net::SCP qw / scp iscp /; my $leases = 'hylafax:/var/state/dhcp/dhcpd.leases'; my $access = 'hylafax:/usr/local/squid/var/logs/access.log'; my $scp = Net

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 i

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', 'pk

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'

Net -> SCP - errstr uninitialized

2004-01-05 Thread Paul Kraus
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 "he

Re: Fw: Net::SCP::Expect

2003-10-01 Thread Jose Malacara
"'Jose Malacara'" <[EMAIL PROTECTED]>; "'R. Joseph Newton'" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, October 01, 2003 9:59 AM Subject: RE: Fw: Net::SCP::Expect > Perhaps you should automate ssh logins by using a key th

RE: Fw: Net::SCP::Expect

2003-10-01 Thread TN
Perhaps you should automate ssh logins by using a key that requires no passphrase, in other words so you can just "ssh [EMAIL PROTECTED]" and you're in with no interaction required. Then you don't need expect for that. Also, have you tried using the hostname IP address, just to see what happens?

Re: Fw: Net::SCP::Expect

2003-10-01 Thread Jose Malacara
. - Original Message - From: "R. Joseph Newton" <[EMAIL PROTECTED]> To: "Jose Malacara" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, October 01, 2003 7:49 AM Subject: Re: Fw: Net::SCP::Expect > Jose Malacara wrote: > > > Sor

Re: Fw: Net::SCP::Expect

2003-10-01 Thread R. Joseph Newton
all but the SCP example code and it still generates an error from the > module. I verified my login, directory and filenames were correct by sending the > file manually. > > I am running Perl v5.8.0, Expect-1.14, and Net-SCP-Expect-0.10 > > use Net::SCP::Expect; > my $host =

Fw: Net::SCP::Expect

2003-09-30 Thread Jose Malacara
generates an error from the module. I verified my login, directory and filenames were correct by sending the file manually. I am running Perl v5.8.0, Expect-1.14, and Net-SCP-Expect-0.10 #The Script #!/usr/bin/perl -w use strict; use Net::SCP::Expect; my $host = "host.whatever"; my $use

Net::SCP::Expect

2003-09-30 Thread Jose Malacara
filenames were correct by sending the file manually. I am running Perl v5.8.0, Expect-1.14, and Net-SCP-Expect-0.10 ===The script=== #!/usr/bin/perl -w use strict; use Net::SCP::Expect; my $host = "host.whatever"; my $user = "josem"; my $pwd = "password"; m

Net::SCP

2002-06-16 Thread Angshuman Guin
Did anybody get Net::SCP to work in an NT env machine? I tried use Net::SCP qw(scp iscp); ... ... $scp = Net::SCP->new( $hostname, $username ) or die "foo"; scp("$username\@$hostname\:$remote_dir$filename", "c:\\$filename") or die "bar"; but the pr