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