Re: configuring Net::SMTP

2023-07-15 Thread perl
Many thanks to Bob, Olivier, Claude, and Andinus. I learned from all your comments, and I got the Net::SMTP working! Rick > On Jul 9, 2023, at 8:03 AM, Bob Kardell wrote: > > One thing to check from experience - make sure hostgator does not block > outbound SMTP ports. Many d

Re: configuring Net::SMTP

2023-07-09 Thread Bob Kardell via beginners
One thing to check from experience - make sure hostgator does not block outbound SMTP ports. Many do to prevent spam. I spent hours trying to configure Net::SMTP on a different host only to discover the code was working but the email was being blocked. If hostgator received it it may be

Re: configuring Net::SMTP

2023-07-08 Thread Olivier
Rick T writes: > [1:text/plain Show] > > > [2:text/html Hide Save:noname (4kB)] > > I have two subroutines (below) in a program that uses Net::SMTP. I’ve > recently moved my site from FutureQuest.net to Hostgator.com, and this part > of my program has stopped working. Th

RE: configuring Net::SMTP

2023-07-08 Thread Claude Brown via beginners
Hi Rick, We use Net::SMTP to send emails via SendGrid. They require a user/pass authentication over SSL and I wonder if that is what is going wrong in your case. The other thing worth doing is checking the return-value of each SMTP call as something may be going wrong silently. Below is a

Re: configuring Net::SMTP

2023-07-08 Thread perl
Thanks, Andinus. This is useful information. — Rick > On Jul 8, 2023, at 10:11 AM, Andinus wrote: > > > Hello Rick, > > Hostgator might be able to provide you more information regarding why > the email delivery is failing. I'm not very familiar with mail stuff.

configuring Net::SMTP

2023-07-08 Thread Rick T
I have two subroutines (below) in a program that uses Net::SMTP. I’ve recently moved my site from FutureQuest.net <http://futurequest.net/> to Hostgator.com <http://hostgator.com/>, and this part of my program has stopped working. The first routine sends an analysis of a t

Re: Install Problems: Net::Google::Spreadsheets

2019-08-08 Thread James Kerwin
stuck in a similar way: https://www.perlmonks.org/?node_id=11104105 Thanks, James On Thu, Aug 8, 2019 at 5:16 AM Mike wrote: > > I believe somebody else responded to this, but . . . > > I'll help if I can. > If you want me to try to install Net::Google::Spreadsheets > I can.

Re: Install Problems: Net::Google::Spreadsheets

2019-08-07 Thread Mike
I believe somebody else responded to this, but . . . I'll help if I can. If you want me to try to install Net::Google::Spreadsheets I can.  I am on Win7 - Strawberry Perl V 5.26.1 Mike On 8/5/2019 9:47 AM, James Kerwin wrote: Hi All, I'm having some difficulty installing a P

Re: Install Problems: Net::Google::Spreadsheets

2019-08-07 Thread James Kerwin
Thanks Shlomi, That was helpful. It transpires that I added nothing to my @INC, not permanently. A complete misunderstanding on my part. I went through the CPAN set-up again and paid slightly more attention. I managed to get some things installed, but one dependency keeps on failing tests: Net

Re: Install Problems: Net::Google::Spreadsheets

2019-08-05 Thread Shlomi Fish
hi James, On Mon, 5 Aug 2019 15:47:45 +0100 James Kerwin wrote: > Hi All, > > I'm having some difficulty installing a Perl Module; > Net::Google::Spreadsheets". Inititally it was installing in to my user > account home directory and I wasn't certain how to chan

Install Problems: Net::Google::Spreadsheets

2019-08-05 Thread James Kerwin
Hi All, I'm having some difficulty installing a Perl Module; Net::Google::Spreadsheets". Inititally it was installing in to my user account home directory and I wasn't certain how to change this, so I just added the directory to my @INC (this isn't a live server, it's pu

Re: Net::XMPP::Client

2018-08-24 Thread hw
On 06/15/2018 11:59 PM, Chas. Owens wrote: Look at the SetMessageCallBacks method in Net::XMPP::Protocol.   It lets you set the function to run when a message of a specific type comes in. Thanks, that works great :) On Fri, Jun 15, 2018 at 5:34 AM hw mailto:h...@gc-24.de>> wrote:

Re: Net::XMPP::Client

2018-06-15 Thread Chas. Owens
Look at the SetMessageCallBacks method in Net::XMPP::Protocol. It lets you set the function to run when a message of a specific type comes in. On Fri, Jun 15, 2018 at 5:34 AM hw wrote: > On 06/15/2018 02:21 PM, Chas. Owens wrote: > > In Net::XMPP::Client it says > > > &g

Re: Net::XMPP::Client

2018-06-15 Thread hw
On 06/15/2018 02:21 PM, Chas. Owens wrote: In Net::XMPP::Client it says For a full list of high level functions available please see Net::XMPP::Protocol. In that documentation it says $Con = new Net::XMPP::Client(); # From $status = $Con->Connect(hostname=>"jabber.org <htt

Re: Net::XMPP::Client

2018-06-15 Thread Chas. Owens
In Net::XMPP::Client it says For a full list of high level functions available please see Net::XMPP::Protocol. In that documentation it says $Con = new Net::XMPP::Client(); # From $status = $Con->Connect(hostname=>"jabber.org"); # Net::XMPP::Client $Con->Send("XML&qu

Re: Net::XMPP::Client

2018-06-15 Thread hw
On 06/15/2018 12:37 PM, hw wrote: Hi, using Net::XMPP::Client, I am able to send messages, but I don´t see a way to receive messages.  The documentation leaves me entirely in the dark as to how to do this, and I couldn´t find an example using this module to receive messages. So how can I

Net::XMPP::Client

2018-06-15 Thread hw
Hi, using Net::XMPP::Client, I am able to send messages, but I don´t see a way to receive messages. The documentation leaves me entirely in the dark as to how to do this, and I couldn´t find an example using this module to receive messages. So how can I receive messages? -- To

Re: Banning IP's with Net::Netmask

2018-01-26 Thread SurfShop
> On Jan 24, 2018, at 2:37 AM, Brandon Parncutt > wrote: > > fail2ban would surely be the best bet here. Thanks, Brandon. I'll look into that if I can't find a pure Perl solution. It needs to be easily distributed with an OSS script. Frank

Re: Banning IP's with Net::Netmask

2018-01-24 Thread Brandon Parncutt
gt; country's IPs are in separate text files and the temp IPs are in another, > so there could be quite a few files. The temporary IPs also have a date > associated with them, so they can be deleted later on. > > I decided to go with Net::Netmask for CIDR blocks but it'

Banning IP's with Net::Netmask

2018-01-23 Thread SurfShop
he store owner's choosing. Each country's IPs are in separate text files and the temp IPs are in another, so there could be quite a few files. The temporary IPs also have a date associated with them, so they can be deleted later on. I decided to go with Net::Netmask for CIDR b

nfqueue -> Net::Frame::Layer::ETH?

2017-06-11 Thread James
Short spew: How does one take a netfilter-queued-to-userspace packet and turn it into a Perl "Net::Frame::Layer::ETH" object? No matter how I try to call "new(raw => $something)" it seems to ignore the "raw" attribute and create a default-value'd object.

nfqueue -> Net::Frame::Layer::ETH?

2017-06-10 Thread James
Short spew: How does one take a netfilter-queued-to-userspace packet and turn it into a Perl "Net::Frame::Layer::ETH" object? No matter how I try to call "new(raw => $something)" it seems to ignore the "raw" attribute and create a default-value'd object.

Re: Net::SNMP

2017-04-23 Thread lee
henticated via the acl. He doesn't need a password. Net::SNMP gives an error message that password must be specified while snmpget works without one. What's behind that, and why didn't the acl apply to requests made with snmpget? (Maybe it applies to the given user only when a pas

Re: Net::SNMP

2017-04-23 Thread Илья Рассадин
Hi! It looks like the password issue, maybe password is incorrect or not set properly? This value (16) can be stored on the device. Did you try to reboot host.example.com and see the value of usmStatsWrongDigest counter? 23.04.17 6:30, lee пишет: Hi, Net::SNMP only gives a useless

Net::SNMP

2017-04-22 Thread lee
Hi, Net::SNMP only gives a useless error message "ERROR: Received usmStatsWrongDigests.0 Report-PDU with value 16 during synchronization." with the number (16) increasing by 1 every time I run the program? What is this supposed to tell me? How is it possible for the number to be incr

Re: Installing Net::SFTP

2017-03-20 Thread SSC_perl
> On Mar 15, 2017, at 6:44 AM, Shawn H Corey wrote: > > I don't know about Crypt::SSLeay but Net::SSLeay needs two > libraries: `zlib1g` and `libssl` > > I don't run RHEL but IIRC, the command is: > >yum install zlib1g libssl I don’t know if this

Re: Installing Net::SFTP

2017-03-20 Thread Peter Ezetta
Hi Uday, If you are using the package manager, you can run sudo yum install perl-Net-SFTP Regards, Peter On Mar 14, 2017, at 11:22 PM, Uday Vernekar mailto:vernekaru...@gmail.com>> wrote: Hello, Need some help on installing Net::SFTP perl module on RHEL. please guide. With Regards

Re: Installing Net::SFTP

2017-03-15 Thread Shawn H Corey
On Wed, 15 Mar 2017 15:41:57 +0800 community tech wrote: > before that you may want to install SSLeay etc. > > cpanm Net::SSLeay > cpanm Crypt::SSLeay I don't know about Crypt::SSLeary but Net::SSLeary needs two libraries: `zlib1g` and `libssl` I don't run RHEL bu

Re: Installing Net::SFTP

2017-03-15 Thread Uday Vernekar
status: 2 Parse errors: No plan found in TAP output Files=2, Tests=0, 0 wallclock secs ( 0.02 usr 0.01 sys + 0.01 cusr 0.00 csys = 0.04 CPU) Result: FAIL Failed 2/2 test programs. 0/0 subtests failed. make: *** [test_dynamic] Error 2 DBROBINS/Net-SFTP-0.10.tar.gz /usr/bin/make test -- NOT

Re: Installing Net::SFTP

2017-03-15 Thread Shlomi Fish
Hi Uday, On Wed, 15 Mar 2017 11:52:53 +0530 Uday Vernekar wrote: > Hello, > > Need some help on installing Net::SFTP perl module on RHEL. > > please guide. > What did you try ? What happened? You may be able to find an .rpm package of "perl-Net-SFTP" on

Re: Installing Net::SFTP

2017-03-15 Thread community tech
before that you may want to install SSLeay etc. cpanm Net::SSLeay cpanm Crypt::SSLeay 2017-03-15 14:22 GMT+08:00 Uday Vernekar : > Hello, > > Need some help on installing Net::SFTP perl module on RHEL. > > please guide. > > Wi

Installing Net::SFTP

2017-03-14 Thread Uday Vernekar
Hello, Need some help on installing Net::SFTP perl module on RHEL. please guide. With Regards Uday V G -- * Don't ask them WHY they hurt you, because all they'll tell you is lies and excuses. Just know they were wrong, and t

Re: Net::ISC::DHCPd or Net::DHCP::Info

2017-01-30 Thread Neil Bowers
Hi Lars, > When there are several CPAN modules that seem to do something similar, > how does one identify which one is more mature and well-maintained? > > For example, which one is best for parsing DHCPd configuration > (dhcpd.conf) files? Net::ISC::DHCPd or Net::DHCP::Info

Re: Net::ISC::DHCPd or Net::DHCP::Info

2017-01-30 Thread Andrew Solomon
I know nothing about these particular modules, but looking at these two pages: https://metacpan.org/pod/Net::ISC::DHCPd https://metacpan.org/pod/Net::DHCP::Info I can see that from the Activity panel on the left that Net::ISC::DHCPd is being actively maintained while Net::DHCP::Info hasn't

Net::ISC::DHCPd or Net::DHCP::Info

2017-01-30 Thread Lars Noodén
Hello, When there are several CPAN modules that seem to do something similar, how does one identify which one is more mature and well-maintained? For example, which one is best for parsing DHCPd configuration (dhcpd.conf) files? Net::ISC::DHCPd or Net::DHCP::Info? I'm guessing that sinc

Re: How to pass all `dig` arguments to Net::DNS?

2017-01-21 Thread Jim Gibson
ample.com" ); > > which lists all the keys to console. > > I want to get at the same info using Perl, with the results in objects that I > can extract data from and assign to variables. > > IIUC, Net::DNS is the right tool. > > Reading the docs I don't

How to pass all `dig` arguments to Net::DNS?

2017-01-20 Thread alanj
, "-t", "A", "\@192.0.2.1", "-k", "/etc/named/keys/T.key", "+noadditional", "+multiline", "+norecurs", "example.com" ); which lists all the keys to console. I want to get at the same info using Perl, with the results

Re: Net::RawIP - UDP checksum

2016-08-23 Thread Mitescu George Dan
, although I have followed the documentation (or at least I think so). If anybody knows libraries which the source address can be customly set, please let me know. Regards, Mitescu George Dan Fedor Sumkin writes: > Hi all, > > I guess that everything is fine with Net::RawIP. > >

Re: Net::RawIP - UDP checksum

2016-08-22 Thread Fedor Sumkin
Hi all, I guess that everything is fine with Net::RawIP. tcpdump can't verify checksums if UDP / TCP checksum offloading(TCO) isn't turned off. See, for example - https://sokratisg.net/2012/04/01/udp-tcp-checksum-errors-from-tcpdump-nic-hardware-offloading/ You can also check on th

Re: Net::RawIP - UDP checksum

2016-08-22 Thread Mitescu George Dan
This is my current code. I have also tried declaring the header data inside the constructor, with no change. my $fdp = Net::RawIP->new({udp =>{}}); $fdp->set({ ip => { saddr => $ip->{dest_ip}, daddr => $ip->{src_ip}

Re: Net::RawIP - UDP checksum

2016-08-22 Thread Mitescu George Dan
This is my current code. I have also tried setting the header data inside the constructor, but with no difference. This is also how it's written inside the perldoc. my $fdp = Net::RawIP->new({udp =>{}}); $fdp->set({ ip => { saddr => $ip->{dest_ip},

Re: Net::RawIP - UDP checksum

2016-08-21 Thread Илья Рассадин
Hi! According to Net::RawIP docs, checksum will be calculated automatically unless your provide it manually via "check" parameter during object construction. So my guess is you incorrectly construct Net::RawIP objects. But it's a sort of guesswork, so it'll be much e

Net::RawIP - UDP checksum

2016-08-21 Thread Mitescu George Dan
Hello, I am trying to use Net::RawIP in order to craft UDP packets, which have a custom source ip. The packets get sent, but tcpdump reports that the checksum which is automatically computed (according to the docs) is incorrect. There is a single post about this issue on perlmonks, I've

Re: solved: Net::FTP ALLO --- and how to advise functions in perl

2016-08-20 Thread Chas. Owens
{CODE} *Fully::Qualified::sub_name = sub { #do stuff before $old->(@_); #do stuff after }; } On Sat, Aug 20, 2016, 05:44 hw wrote: > Chas. Owens schrieb: > > If you want to get rid of ALLO completely, it looks like you just need > to monkeypatch Net::FTP::_ALLO to r

solved: Net::FTP ALLO --- and how to advise functions in perl

2016-08-20 Thread hw
Chas. Owens schrieb: If you want to get rid of ALLO completely, it looks like you just need to monkeypatch Net::FTP::_ALLO to return 1: use Net::FTP; BEGIN { no warnings "redefine"; *Net::FTP::_ALLO = sub { 1 }; } This replaces the _ALLO method of Net::FTP with a new m

Re: Net::FTP ALLO --- and how to advise functions in perl

2016-08-19 Thread Chas. Owens
If you want to get rid of ALLO completely, it looks like you just need to monkeypatch Net::FTP::_ALLO to return 1: use Net::FTP; BEGIN { no warnings "redefine"; *Net::FTP::_ALLO = sub { 1 }; } This replaces the _ALLO method of Net::FTP with a new method that just returns 1. I

Re: Net::FTP ALLO --- and how to advise functions in perl

2016-08-19 Thread hw
Chas. Owens schrieb: Based on a cursory reading of the perldoc, it looks like the ALLO command is only sent if you call the Net::FTP::alloc method. If you aren't calling it, can you provide a toy test case for us where the code sends ALLO. I will try to debug why it is sending a comman

Re: Net::FTP ALLO

2016-08-19 Thread Chas. Owens
Based on a cursory reading of the perldoc, it looks like the ALLO command is only sent if you call the Net::FTP::alloc method. If you aren't calling it, can you provide a toy test case for us where the code sends ALLO. I will try to debug why it is sending a command you aren't askin

Net::FTP ALLO

2016-08-19 Thread hw
Hi, is there some way to prevent Net::FTP from using the ALLO command or to make it ignore failures when this command is used? I have to deal with ftp servers that do not understand the ALLO command. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail

What is the Perl equivalent of "net user username \domain" if I am on Linux or Mac?

2016-03-07 Thread Kenneth Wolcott
Hi; What is the Perl equivalent of "net user username \domain" if I am on Linux or Mac? None of our Linux or Mac machines are a member of the specific domain in question. Do have to obtain the name of the AD/LDAP server and obtain some kind of credentials for me to inqui

RE: Unable to install Net::IP

2014-12-02 Thread zac
, LLC Original Message Subject: Re: Unable to install Net::IP From: John SJ Anderson <geneh...@genehack.org> Date: Tue, December 02, 2014 3:54 pm To: z...@psoftulsa.com, Perl Beginners <beginners@perl.org> Whenever you have a module installation fail, your first step should be to ask:

Re: Unable to install Net::IP

2014-12-02 Thread John SJ Anderson
Whenever you have a module installation fail, your first step should be to ask: is it failing for other people? Results of CPAN Testers (which is basically a distributed testing network) are available on the dist's MetaCPAN page. For Net::IP, that's here: https://metacpan.org/p

Re: Unable to install Net::IP

2014-12-02 Thread Brandon McCaig
On Tue, Dec 2, 2014 at 5:17 PM, wrote: > Hi, Hello, > I'm unable to find information on this issue. Whenever I try to install > Net::IP (to do a simple DHCP configuration file that will make IP address > reservations DNS files that will do forward and reverse lookups)

Unable to install Net::IP

2014-12-02 Thread zac
Hi,I'm unable to find information on this issue.  Whenever I try to install Net::IP (to do a simple DHCP configuration file that will make IP address reservations DNS files that will do forward and reverse lookups) it gives me the following results:root@SERVER:~# cpan -i Net::IPReading &

Re: What Happened to Net::DNS and a few others on December 1?

2014-12-02 Thread Martin G. McCormick
Shlomi Fish writes: > There could be several reasons: > > 1. The @INC of the installed module was perl-version-specific. E.g in my > perl > -V: > As you can see, some of them are versioned and if the previous versions > are not > added to the inc of the new perl, the modules installed there won

Re: What Happened to Net::DNS and a few others on December 1?

2014-12-02 Thread Shlomi Fish
> > On December 1 of 2014, we were alerted to the fact that > some perl scripts were no longer working. The complaint was > about Net::DNS on one system and Warnings::Unused on another > system and expect.pm on yet another system. > I used cpanp -i to install all the

What Happened to Net::DNS and a few others on December 1?

2014-12-02 Thread Martin G. McCormick
. The complaint was about Net::DNS on one system and Warnings::Unused on another system and expect.pm on yet another system. I used cpanp -i to install all the needed modules with no trouble at all and all the scripts came back to life. I am not complaining at all but curious as to what

Net::POP3::SSLWrapper - Unexpected EOF on command channel?

2014-10-30 Thread Kahawe Dawnstrider
Hi! I am trying to connect to a pop3 account to get a count of the unread mail using Net::POP3::SSLWrapper in perl v5.16.2, but it fails with the error Net::POP3: Unexpected EOF on command channel at pop3s.pl line 4. This is the tiny script from the examples: use Net::POP3::SSLWrapper; pop3s

Net::DNS::Update

2014-09-18 Thread Martin G. McCormick
have seen/stolen what is being done as in: # Create the update packet. my $update = Net::DNS::Update->new($zone); #This is a list of IP addresses to delete. foreach $zonerecord (@zonedeletes) { #Ev

RE: Failed: PAUSE indexer report JUNIPER/Net-Netconf-0.01.zip

2014-06-04 Thread Priyal Jain
Hello, I changed permissions of file and it was uploaded in cpan website, but when I am trying to install in terminal using cpan command It is giving error cpan Net::Netconf Trying with "/usr/bin/curl -L -f -s -S --netrc-optional" to get "http://www.perl.org/CPAN/modules/03

Re: Failed: PAUSE indexer report JUNIPER/Net-Netconf-0.01.zip

2014-06-02 Thread David Precious
Hi Priyal, On Mon, 2 Jun 2014 11:17:29 + Priyal Jain wrote: > I am uploading my module Net::Netconf, after making changes in cpan. > But it is giving below error. I cross checked my module and it is > complete and has all the dependency, do not know why it is giving > this error

FW: Failed: PAUSE indexer report JUNIPER/Net-Netconf-0.01.zip

2014-06-02 Thread Priyal Jain
Hello, I am uploading my module Net::Netconf, after making changes in cpan. But it is giving below error. I cross checked my module and it is complete and has all the dependency, do not know why it is giving this error. Please help as soon as possible. Thanks Regards Priyal -Original

Net::Server and SSLEAY issues

2014-02-22 Thread Chris Knipe
Hi all, I'm attempting to do a very simple Net::Server listening on two different ports, one being TCP and one being SSLEAY. So far this is working, but as soon as I make an normal unencrypted connection (telnet) to the SSLEAY port and *disconnect*, the Net::Server goes into an infinite

Re: Best Way to Downgrade Perl Module Net::DNS

2014-01-10 Thread Martin G. McCormick
Shlomi Fish writes: > Hi Martin, > > see https://metacpan.org/release/App-pmuninstall . > > and just for reference, when using Mageia Linux, I normally prefer > packaging > every CPAN distrbution as an .rpm using the tools given here: Thank you. I appreciate this. I use both Linux and F

Re: Best Way to Downgrade Perl Module Net::DNS

2014-01-09 Thread Shlomi Fish
Hi Martin, see https://metacpan.org/release/App-pmuninstall . and just for reference, when using Mageia Linux, I normally prefer packaging every CPAN distrbution as an .rpm using the tools given here: * http://perl-begin.org/topics/cpan/wrappers-for-distributions/ * http://blogs.perl.org/users/

Best Way to Downgrade Perl Module Net::DNS

2014-01-09 Thread Martin G. McCormick
I have been writing a perl script that uses the Net::DNS modules. After banging my head, so to speak for many days, I asked on a DNS-related discussion list for help in figuring out why name server updates had started always failing with errors about not auth and BADKEY when I seem to

Re: Mojolicious::Lite and Net::Stripe

2013-10-03 Thread Peter Ezetta
I actually just discovered with the help of a few folks in IRC that this seems to work fine with JSON::XS installed, but not JSON::PP. I'm just going to run with JSON::XS for now, and open a ticket for the module maintainer. Thank you much for your response. Peter On Oct 3, 2013, at 3:14 PM,

Mojolicious::Lite and Net::Stripe

2013-10-03 Thread Peter Ezetta
Hello All, I am currently messing around with my first Mojolicious application, and am attempting to get a credit card to process with Stripe using the Net::Stripe module. It appears that one of the attributes is failing to pass it's constraint, however I am unsure if the problem lies wi

Re: script dies when Net::DNS resolve fails

2013-05-13 Thread Dr.Ruud
On 13/05/2013 18:08, David Precious wrote: The usual way to catch exceptions is with an eval block or Try::Tiny etc. Basic example: my $source_address = eval { $res->query(); }; if ($@) { # an error occurred - $@ will contain the message # do something appropriate here } Testi

Re: script dies when Net::DNS resolve fails

2013-05-13 Thread David Precious
On Mon, 13 May 2013 08:53:13 -0700 Noah wrote: > Hi list, > > > When Net::DNS resolved name is not found my script dies. How can I > allow for my script to continue on even if there is a failed DNS > query? The usual way to catch exceptions is with an eval block or Try

Re: script dies when Net::DNS resolve fails

2013-05-13 Thread Lawrence Statton
On 05/13/2013 10:53 AM, Noah wrote: When Net::DNS resolved name is not found my script dies. How can I allow for my script to continue on even if there is a failed DNS query? Impossible to say -- you do not show enough to know what is happening AFTER the block shown. -- To unsubscribe, e

script dies when Net::DNS resolve fails

2013-05-13 Thread Noah
Hi list, When Net::DNS resolved name is not found my script dies. How can I allow for my script to continue on even if there is a failed DNS query? Just cutting and pasting the relevant lines use Net::DNS; my $res = Net::DNS::Resolver->new; my $v6_source_hostn

Re: Net::SSH::Perl - Permission Denied

2013-03-20 Thread Andy Bach
or an empty list in list context, and $@ is set to the error message. so you'd test $@ and skip to the next host if the login failed. But but my perldoc Net::SSH::Perl doesn't seem to say it'd die if the login failed so there may be more going on. It also says the log

Net::SSH::Perl - Permission Denied

2013-03-20 Thread Alvin Ramos
e it to keep rolling over to localhost4, code below, open for suggestions and appreciate it! #!/usr/bin/perl -w use Net::SSH::Perl; my $file = "server-list.txt"; my $usr = "root"; my $pwd = "password"; my $output_file = "servers_information.txt"; open(H

Re: Net::FTP

2013-03-12 Thread Jim Gibson
On Mar 8, 2013, at 4:47 PM, Chris Stinemetz wrote: > U > sing Net::FTP is there a way to rename a file after locating it and before > putting it? > > For example: > > $ftp->put('/storage/pcmd/2013-03-08.17:21.-0700.MMEpcmd.gz') || die "can't >

Re: Net::FTP

2013-03-11 Thread Nathan Hilterbrand
On 03/08/2013 07:47 PM, Chris Stinemetz wrote: U sing Net::FTP is there a way to rename a file after locating it and before putting it? For example: $ftp->put('/storage/pcmd/2013-03-08.17:21.-0700.MMEpcmd.gz') || die "can't put file: $!"; Doesn't transfer

Net::FTP

2013-03-08 Thread Chris Stinemetz
U sing Net::FTP is there a way to rename a file after locating it and before putting it? For example: $ftp->put('/storage/pcmd/2013-03-08.17:21.-0700.MMEpcmd.gz') || die "can't put file: $!"; Doesn't transfer correctly because the windows FTP server doesn&#

Re: Net::DNS

2013-03-07 Thread shawn wilson
s->search(...)) { >> if (my $answer = $packet->answer()) { >>... get some data out of the answer RRs >> } >> } >> > > Yeah, I've pretty much got it - actually, I'm good on that part, just > trying to figure why Net::Whois::ARIN isn&#

Re: Net::DNS

2013-03-07 Thread shawn wilson
On Thu, Mar 7, 2013 at 12:29 PM, Lawrence Statton wrote: > On 03/07/2013 11:00 AM, shawn wilson wrote: >> >> However, when I @EXPORT this function from a module, I get this: >> Can't call method "pre" on an undefined value at lib/Misc.pm line 45, >> <> line 723793. > > if (my $answer = $packet->

Re: Net::DNS

2013-03-07 Thread shawn wilson
On Thu, Mar 7, 2013 at 11:40 AM, Lawrence Statton wrote: > On 03/07/2013 10:21 AM, shawn wilson wrote: >> >> use Data::Dumper; >> use Net::DNS::Resolver; >> >> my $dns = Net::DNS::Resolver->new; >> >> print rev_ip('8.8.8.8') . "\n&q

Re: Net::DNS

2013-03-07 Thread Lawrence Statton
On 03/07/2013 10:21 AM, shawn wilson wrote: use Data::Dumper; use Net::DNS::Resolver; my $dns = Net::DNS::Resolver->new; print rev_ip('8.8.8.8') . "\n"; sub rev_ip { my ($ip) = @_; my $packet = $dns->search($ip); my @authority = $packet->authority;

Net::DNS

2013-03-07 Thread shawn wilson
What am I doing wrong here? I'm obviously not understanding what object is being returned by $packet. use strict; use warnings; use Data::Dumper; use Net::DNS::Resolver; my $dns = Net::DNS::Resolver->new; print rev_ip('8.8.8.8') . "\n"; sub rev_ip { my ($ip

Re: Net::Openssh disable password based login

2013-01-27 Thread Rajeev Prasad
nevermind. i figured it need to give this option: -o => 'PasswordAuthentication=no', From: Rajeev Prasad To: perl list Sent: Sunday, January 27, 2013 1:10 PM Subject: Re: Net::Openssh disable password based login forgot to mention th

Re: Net::Openssh disable password based login

2013-01-27 Thread Rajeev Prasad
forgot to mention that, i have no control over ssh server (to add 'PasswordAuthentication no' option to server config) From: Rajeev Prasad To: perl list Sent: Sunday, January 27, 2013 1:09 PM Subject: Net::Openssh disable password based login

Net::Openssh disable password based login

2013-01-27 Thread Rajeev Prasad
I guess this is openssh question. but, while using this module, and using key based authentication. some hosts which do not have key installed (perhaps user account does not yet exist there), throws password challenge and then the ssh program wait for too long, till the process is killed by hand

how to break out of Net::OpenSSH $ssh->pipe_out($cmd); call

2013-01-25 Thread Rajeev Prasad
/close the pipe as soon as i reach the limit? my $ssh = Net::OpenSSH->new($host); ...                 my ($rout, $pid) = $ssh->pipe_out($cmd);                     while (my $line = <$rout>) {                         my ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$

Re: Net::Openssh not fetching data

2012-12-17 Thread Salvador Fandino
From: Salvador Fandino To: Rajeev Prasad Cc: perl list Sent: Monday, December 17, 2012 11:15 AM Subject: Re: Net::Openssh not fetching data On 12/17/2012 05:21 PM, Rajeev Prasad wrote: the following is _i think_ timing out. when it is run from within my script ( @cmdresult, $c

Re: Net::Openssh not fetching data

2012-12-17 Thread Rajeev Prasad
list Sent: Monday, December 17, 2012 11:15 AM Subject: Re: Net::Openssh not fetching data On 12/17/2012 05:21 PM, Rajeev Prasad wrote: > > the following is _i think_ timing out. when it is run from within my script > > > ( @cmdresult, $cmderr ) = $ssh->capture($CMD); >

Re: Net::Openssh not fetching data

2012-12-17 Thread Salvador Fandino
ss you are very carefully you will end with an script requiring several GBs of memory to run. Try saving the output to a file and process it afterwards line by line, or use Net::OpenSSH pipe_in method to read and process the data on the fly without storing it all in memory at once.

Net::Openssh not fetching data

2012-12-17 Thread Rajeev Prasad
  the following is _i think_ timing out. when it is run from within my script     ( @cmdresult, $cmderr ) = $ssh->capture($CMD);     where $CMD is:   egrep "data_to_grep" *.data_file.txt   the output is about 300Mb of data.   further, the command when run on the remote system directly (after loggi

Parallel::ForkManager and Net::OpenSSH to handle timeout

2012-10-15 Thread Rajeev Prasad
I am using Parallel::ForkManager to run multiple ssh sessions on various remote hosts. It is working fine. Sometimes I have a problem: problem is in Net::OpenSSH module that, for whatever reason, when far end does not respond the module does not close the SSH connection (i.e. timeout is not

How can I use Net::SSH2 or Net::SSH::Perl in krb5 authen env?

2012-08-31 Thread chenlin rao
Hello all: I usually like to use Net::SSH2 or Net::SSH::Perl module to send commands to the cluster. But now, these servers change to be authenticated by kerberos5.When I kinit and try my old scripts, it failed! $ssh2->auth_list return "gssapi-keyex" and "gssapi-micpa

RE: Net::NNTP inconsistent article retrieval

2012-08-12 Thread Chris Knipe
So just a quick test using the exact same command issues to the server, and reading the exact same response... Perl with Net::NNTP (Net::Cmd) reads 262,144 Bytes (incomplete article with corruption on encoded parts) C# .NET via an Socket reads 393,216 Bytes (complete article without any

RE: Net::NNTP inconsistent article retrieval

2012-08-12 Thread Chris Knipe
Hi Paul, I think I've narrowed the issue to Net::Cmd itself (read_untill_dot() used by Net::SNMP). Even if we completely forget about writing the file to disk: print "220 0 " . $Command['1'] . "\r\n"; print @{$Article}; pri

Re: Net::NNTP inconsistent article retrieval

2012-08-11 Thread Paul Anderson
uld not use the term 'binary' as > such, but rather refer to it as unreadable characters). File::Slurp did > make my life allot easier now yes, but my problem is still not solved. > Looking at the packet capture, it is as clear as daylight to me that either > Net::NNTP or Fil

Re: Net::NNTP inconsistent article retrieval

2012-08-11 Thread Paul Anderson
nts the entire caching back-end for you. Sent from my iPhone On 2012-08-11, at 5:21 AM, Chris Knipe wrote: > Hi All, > > I'm using Net::NNTP to transfer articles from servers. My aim is to write > an NNTP proxy. > > I obtain the article from my parent news server, w

Net::NNTP inconsistent article retrieval

2012-08-11 Thread Chris Knipe
Hi All, I'm using Net::NNTP to transfer articles from servers. My aim is to write an NNTP proxy. I obtain the article from my parent news server, write the file to disk, and serve the current, as well as future requests for that article from the local file on the disk. My results are

Re: net::openssh error in CGI: Invalid or bad combination of options ('key_path')

2012-06-28 Thread Rajeev Prasad
, June 28, 2012 2:36 PM Subject: Re: net::openssh error in CGI: Invalid or bad combination of options ('key_path') - Original Message - From: Shlomi Fish To: Rajeev Prasad Cc: perl list Sent: Thursday, June 28, 2012 12:46 PM Subject: Re: net::openssh error in CGI: Inva

Re: net::openssh error in CGI: Invalid or bad combination of options ('key_path')

2012-06-28 Thread Rajeev Prasad
- Original Message - From: Shlomi Fish To: Rajeev Prasad Cc: perl list Sent: Thursday, June 28, 2012 12:46 PM Subject: Re: net::openssh error in CGI: Invalid or bad combination of options ('key_path') Hi Rajeev, On Thu, 28 Jun 2012 10:00:08 -0700 (PDT) Rajeev Pra

Re: net::openssh error in CGI: Invalid or bad combination of options ('key_path')

2012-06-28 Thread Shlomi Fish
Hi Rajeev, On Thu, 28 Jun 2012 10:00:08 -0700 (PDT) Rajeev Prasad wrote: > hello can anyone help? > > following is failing: > > my $ssh = Net::OpenSSH->new($host, >         user => "abc123", >         ctl_dir => "/home/openssh_lib_home",

  1   2   3   4   5   6   7   8   9   10   >