Experts - I have a snippet of code I can't figure out. I was hoping someone could help me here.
I have a file of IPv6 address that I need to format correct.
Example in:
I need to convert them to:
I'm reading the file into @tstIPs and then I'm trying to loop through them and update accordingly into @testIPs using Net::IP per below.
I'm getting the following error:
I can't figure out what's going on here and need help.
Thanks
Moderator's Comments:
Please use CODE tags for sample input and sample output as well as for sample code.
Last edited by Don Cragun; 01-15-2016 at 01:45 AM..
Reason: Add CODE and ICODE tags.
Problem:
It will not advance to the next user in the list. It always dies right after it sends the 2/2 files from the first users dir.
$USERLIST="/export/home/mxdooley/perl_ftp/userlist";
$USER_DIR="/export/home/mxdooley/perl_ftp/homes";... (2 Replies)
I am looking for a full Perl course on internet (tutorial) to learn everything about Perl. I already know a bunch of programing languages.
I have started Unix interests this year ever since I installed Ubuntu Linux on my PC AND I also got a job at IBM doing software distributions with... (1 Reply)
Hello,
I am trying to download several files from a remote FTP server using Net::FTP from within a perl script. The files download alright, except they appear to be corrupted. I know this because once after downloading, I use bzcat to pipe the files to a split command, and bzcat complains saying... (3 Replies)
We are getting some special scenarios where Net::SMTP is not working for some mails.
we are sending a similar kind of data via mails but some of the mails are not received.
After checking the Net::SMTP in debug mode we found below difference:
Good One - (Mail sent properlly)
---
-----... (0 Replies)
I am trying to execute a script in another server, i used Net::Ftp module
How to execute unix command in another server by using Net::Ftp module..
#!/usr/bin.perl
### Perl script to
$ftp->login($user_name,'password')
or die "Cannot login ", $ftp->message;... (2 Replies)
Wondering if anyone can help or advise on following issue.
The below script should simply connect to a different server and retrieve certain files for me.
use lib "/xxxxx/xxxxx/xxxxx/xxxx";
use Net::FTP;
my $directory = "xxxxxxxx";
my $destinationDir = "xxxxxxxxx";
my $filePrefix =... (1 Reply)
So, I installed the Net::OpenSSH module and I am having trouble getting it to work. It appears to be failing on this code:
my $ssh = Net::OpenSSH->new('user:passwd@host.com');
$ssh->error and
die "Couldn't establish SSH connection: ". $ssh->error;
It's pretty simple code. I keep... (0 Replies)
I have some sample code that's supposed to ssh to another machine using Net::SSH::Perl, execute a command, and print
the output of that command. It's very basic, and it works. However, I noticed that upon logging in:
$ssh->login('username','password');
It takes roughly 10-13 seconds to... (2 Replies)
My .NET website invokes a perl script to perform GIT operations on Gerrit server running UBuntu. In the perl script I connect using passwordless authentication to Gerrit server as below:
system ( "ssh gitadmin@gerritserver.com 'cd /xyz && git clone xxx' ");
I verified that ssh authentication... (3 Replies)
Discussion started by: tkota
3 Replies
LEARN ABOUT DEBIAN
net::inet6glue
Net::INET6Glue(3pm) User Contributed Perl Documentation Net::INET6Glue(3pm)NAME
Net::INET6Glue - Make common modules IPv6 ready by hotpatching
SYNOPSIS
use Net::INET6Glue; # include all glue
use LWP;
use Net::SMTP;
use Net::FTP;
..
DESCRIPTION
Net::INET6Glue is a collection of modules to make common modules IPv6 ready by hotpatching them.
Unfortunatly the current state of IPv6 support in perl is that no IPv6 support is in the core and that a lot of important modules (like
Net::FTP, Net::SMTP, LWP,...) do not support IPv6 even if the modules for IPv6 sockets Socket6, IO::Socket::INET6 are available.
This module tries to mitigate this by hotpatching. Currently the following submodules are available:
Net::INET6Glue::INET_is_INET6
Makes IO::Socket::INET behave like IO::Socket::INET6, especially make it capable to create IPv6 sockets. This makes LWP, Net::SMTP and
others IPv6 capable.
Net::INET6Glue::FTP
Hotpatches Net::FTP to support EPRT and EPSV commands which are needed to deal with FTP over IPv6. Also loads
Net::INET6Glue::INET_is_INET6.
COPYRIGHT
This module and the modules in the Net::INET6Glue Hierarchy distributed together with this module are copyright (c) 2008, Steffen Ullrich.
All Rights Reserved. These modules are free software. They may be used, redistributed and/or modified under the same terms as Perl itself.
perl v5.12.3 2011-08-27 Net::INET6Glue(3pm)