From faber at linuxnj.com Wed Apr 4 08:20:04 2007 From: faber at linuxnj.com (Faber Fedor) Date: Wed, 4 Apr 2007 11:20:04 -0400 Subject: [ABE.pm] april 4th, beer and food In-Reply-To: <20070329174501.GA31139@zodiac.codesimply.com> References: <20070328205428.GB21601@zodiac.codesimply.com> <300ccfa50703281529u31de4a76tbc6a907cd44e2917@mail.gmail.com> <488856AE33F91F4A881EA12F52DDC8C64133E7@inbtmail1.group.iqep.com> <20070329174501.GA31139@zodiac.codesimply.com> Message-ID: <300ccfa50704040820o10fc063ey9d5f8215b24517db@mail.gmail.com> What time tonight? 7? And what's the name of the road it's on? There are sign's on 22 with that name on it, right? Or is it some "Highway" name? On 3/29/07, Ricardo SIGNES wrote: > > * Tom Freedman [2007-03-29T13:08:00] > > I second Mach's Gute. Seemed a little easier to hear and be heard, and > > the food is pretty good. > > Sounds good to me. I want to try their "famous" taco. > > -- > rjbs > _______________________________________________ > ABE-pm mailing list > ABE-pm at pm.org > http://mail.pm.org/mailman/listinfo/abe-pm > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/abe-pm/attachments/20070404/951651ee/attachment.html From john-abe at apt202.net Wed Apr 4 08:25:59 2007 From: john-abe at apt202.net (John Cappiello) Date: Wed, 4 Apr 2007 11:25:59 -0400 Subject: [ABE.pm] april 4th, beer and food In-Reply-To: <300ccfa50704040820o10fc063ey9d5f8215b24517db@mail.gmail.com> References: <20070328205428.GB21601@zodiac.codesimply.com> <300ccfa50703281529u31de4a76tbc6a907cd44e2917@mail.gmail.com> <488856AE33F91F4A881EA12F52DDC8C64133E7@inbtmail1.group.iqep.com> <20070329174501.GA31139@zodiac.codesimply.com> <300ccfa50704040820o10fc063ey9d5f8215b24517db@mail.gmail.com> Message-ID: <20070404152558.GH24606@apt202.net> On Wed, Apr 04, 2007 at 11:20:04AM -0400, Faber Fedor wrote: > And what's the name of the road it's on? There are sign's on 22 with that > name on it, right? Or is it some "Highway" name? Look for the "Lost Highway". Then just keep going. Don't slow down though if you see highbeams bearing down on you. -- jcap From rjbs-perl-abe at lists.manxome.org Wed Apr 4 08:42:40 2007 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Wed, 4 Apr 2007 11:42:40 -0400 Subject: [ABE.pm] april 4th, beer and food In-Reply-To: <300ccfa50704040820o10fc063ey9d5f8215b24517db@mail.gmail.com> References: <20070328205428.GB21601@zodiac.codesimply.com> <300ccfa50703281529u31de4a76tbc6a907cd44e2917@mail.gmail.com> <488856AE33F91F4A881EA12F52DDC8C64133E7@inbtmail1.group.iqep.com> <20070329174501.GA31139@zodiac.codesimply.com> <300ccfa50704040820o10fc063ey9d5f8215b24517db@mail.gmail.com> Message-ID: <20070404154240.GA9609@zodiac.codesimply.com> * Faber Fedor [2007-04-04T11:20:04] > What time tonight? 7? 18:30? 19:00? I will show up at the earlier time, if anyone else will too! > And what's the name of the road it's on? There are sign's on 22 with that > name on it, right? Or is it some "Highway" name? It's on Linden Street. Off of 22, it is either Linden St or 191. You'd want to go south from 22. -- rjbs From tfreedman at iqep.com Wed Apr 4 10:11:13 2007 From: tfreedman at iqep.com (Tom Freedman) Date: Wed, 4 Apr 2007 13:11:13 -0400 Subject: [ABE.pm] april 4th, beer and food In-Reply-To: <20070404154240.GA9609@zodiac.codesimply.com> References: <20070328205428.GB21601@zodiac.codesimply.com><300ccfa50703281529u31de4a76tbc6a907cd44e2917@mail.gmail.com><488856AE33F91F4A881EA12F52DDC8C64133E7@inbtmail1.group.iqep.com><20070329174501.GA31139@zodiac.codesimply.com><300ccfa50704040820o10fc063ey9d5f8215b24517db@mail.gmail.com> <20070404154240.GA9609@zodiac.codesimply.com> Message-ID: <488856AE33F91F4A881EA12F52DDC8C64134C9@inbtmail1.group.iqep.com> > -----Original Message----- > From: Ricardo SIGNES > Sent: Wednesday, April 04, 2007 11:43 AM > To: abe-pm at pm.org > Subject: Re: [ABE.pm] april 4th, beer and food > > 18:30? 19:00? I will show up at the earlier time, if anyone else will > too! I'll make an effort to be there close to 18:30. -Tom From fiedlert at gmail.com Wed Apr 4 11:35:01 2007 From: fiedlert at gmail.com (Ted Fiedler) Date: Wed, 4 Apr 2007 14:35:01 -0400 Subject: [ABE.pm] april 4th, beer and food In-Reply-To: <488856AE33F91F4A881EA12F52DDC8C64134C9@inbtmail1.group.iqep.com> References: <20070328205428.GB21601@zodiac.codesimply.com> <300ccfa50703281529u31de4a76tbc6a907cd44e2917@mail.gmail.com> <488856AE33F91F4A881EA12F52DDC8C64133E7@inbtmail1.group.iqep.com> <20070329174501.GA31139@zodiac.codesimply.com> <300ccfa50704040820o10fc063ey9d5f8215b24517db@mail.gmail.com> <20070404154240.GA9609@zodiac.codesimply.com> <488856AE33F91F4A881EA12F52DDC8C64134C9@inbtmail1.group.iqep.com> Message-ID: <814422ce0704041135u2ec07d95j268d61bc4e26763b@mail.gmail.com> Ill be unable to make it this evening. See you guys next month... Ted On 4/4/07, Tom Freedman wrote: > > -----Original Message----- > > From: Ricardo SIGNES > > Sent: Wednesday, April 04, 2007 11:43 AM > > To: abe-pm at pm.org > > Subject: Re: [ABE.pm] april 4th, beer and food > > > > 18:30? 19:00? I will show up at the earlier time, if anyone else will > > too! > > I'll make an effort to be there close to 18:30. > > -Tom > _______________________________________________ > ABE-pm mailing list > ABE-pm at pm.org > http://mail.pm.org/mailman/listinfo/abe-pm > -- "You are never dedicated to something you have complete confidence in. No one is fanatically shouting that the sun is going to rise tomorrow. They know it's going to rise tomorrow. " -- Robert M Pirsig From thehead at patshead.com Wed Apr 11 16:57:30 2007 From: thehead at patshead.com (Pat Regan) Date: Wed, 11 Apr 2007 19:57:30 -0400 Subject: [ABE.pm] Zimbra? In-Reply-To: <20070319010850.GA9391@neptune.faber.nom> References: <20070319010850.GA9391@neptune.faber.nom> Message-ID: <461D75EA.5020007@patshead.com> Faber J. Fedor wrote: > Ted, > > Weren't you the one testing Zimbra? How do you like it so far? > I'm not Ted, but I am running Zimbra :). I'm running the open source version on my personal server for a few small domains. I'm also nearly in the process of migrating to Zimbra at work (about 80 users or so). > I'm looking for a software solution that will allow users to share a > calendar. Will (the free version of) Zimbra do that? I know Google > Apps for Domains will, but I need to archive all email for ever and > ever. The calendar is shared, but I think it can only be accessed from the web client. I recall seeing a blurb on the Zimbra wiki about interfacing with the Mozilla Sunbird/Lightning calendar, but it doesn't sound like that will be happening any time soon. Pat -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 252 bytes Desc: OpenPGP digital signature Url : http://mail.pm.org/pipermail/abe-pm/attachments/20070411/28eae0b2/attachment.bin From rjbs-perl-abe at lists.manxome.org Wed Apr 11 17:41:38 2007 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Wed, 11 Apr 2007 20:41:38 -0400 Subject: [ABE.pm] wiki fired into the sun Message-ID: <20070412004138.GA9271@zodiac.codesimply.com> I've deleted the wiki. It was not being used, except by spammers. I will set up static content, and maybe some other stuff. I don't think we need anything but links to the list, information about meetings, and maybe some info on the membership and library. -- rjbs From faber at linuxnj.com Wed Apr 11 17:46:33 2007 From: faber at linuxnj.com (Faber Fedor) Date: Wed, 11 Apr 2007 20:46:33 -0400 Subject: [ABE.pm] wiki fired into the sun In-Reply-To: <20070412004138.GA9271@zodiac.codesimply.com> References: <20070412004138.GA9271@zodiac.codesimply.com> Message-ID: <300ccfa50704111746m3a6da184ne1a855e88b34f34f@mail.gmail.com> We had a wiki? On 4/11/07, Ricardo SIGNES wrote: > > > I've deleted the wiki. It was not being used, except by spammers. I will > set > up static content, and maybe some other stuff. I don't think we need > anything > but links to the list, information about meetings, and maybe some info on > the > membership and library. > > -- > rjbs > _______________________________________________ > ABE-pm mailing list > ABE-pm at pm.org > http://mail.pm.org/mailman/listinfo/abe-pm > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/abe-pm/attachments/20070411/27b4189d/attachment.html From rjbs-perl-abe at lists.manxome.org Wed Apr 11 19:25:56 2007 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Wed, 11 Apr 2007 22:25:56 -0400 Subject: [ABE.pm] wiki fired into the sun In-Reply-To: <300ccfa50704111746m3a6da184ne1a855e88b34f34f@mail.gmail.com> References: <20070412004138.GA9271@zodiac.codesimply.com> <300ccfa50704111746m3a6da184ne1a855e88b34f34f@mail.gmail.com> Message-ID: <20070412022556.GA16275@knight.manxome.org> * Faber Fedor [2007-04-11T20:46:33] > We had a wiki? Yup. It's mostly useful, I think, if you want to read our book reviews or if you found us on Google and want to know how to get on our list or find the bars. I've started putting up the replacement, here: http://abe.pm.org/ -- rjbs From jkeen at verizon.net Thu Apr 12 19:32:48 2007 From: jkeen at verizon.net (James Keenan) Date: Thu, 12 Apr 2007 22:32:48 -0400 Subject: [ABE.pm] [ANNOUNCE]: Hackathon Toronto Sat Apr 28 Message-ID: <5D24D8CA-FD57-41C9-972D-92A2BB55C43B@verizon.net> Toronto Perlmongers are pleased to announce Hackathon Toronto, a one- day, almost-spur-of-the-moment hackathon, to be held Saturday, April 28, 2007. A hackathon is a gathering of free and open source software developers reflecting the joy of collective hacking. Building on the tradition of previous Perl hackathons in Toronto, Chicago and elsewhere, Hackathon Toronto will encourage people to come together for face-to-face work on Perl 5, Perl 6, CPAN modules, Parrot, Pugs and ... you name it! A hackathon wiki has been established at http://rakudo.org/hackathon- toronto/. Go there to learn details as to participation, location, transportation, projects, logistics, etc. As we get closer to the hackathon date, log on to #hackathon on irc.perl.org. If you can be in Toronto on Saturday, April 28, we hope to see you there. Thank you very much. Jim Keenan From jkeen at verizon.net Mon Apr 16 17:07:21 2007 From: jkeen at verizon.net (James Keenan) Date: Mon, 16 Apr 2007 20:07:21 -0400 Subject: [ABE.pm] Hackathon: Improved Link Message-ID: It appears that in my last posting the link to the Hackathon wiki line-wrapped badly. Here's the shortest working version: http://rakudo.org/hackathon-toronto/ If you're planning on coming a week from Saturday, please sign up on the Attendees page. Also please feel free to contribute projects you'd like to hack on to the Projects page. I look forward to seeing you at the Hackathon on Sat Apr 28. jimk From rjbs-perl-abe at lists.manxome.org Wed Apr 18 10:43:28 2007 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Wed, 18 Apr 2007 13:43:28 -0400 Subject: [ABE.pm] visual basic humor Message-ID: <20070418174328.GA14863@knight.manxome.org> I just realized that it would be awesome to create a Shakespearian video about programming, and it could be called "Much ADO about Nothing". Yeah, that's all. Sorry. -- rjbs From john-abe at apt202.net Wed Apr 18 10:47:03 2007 From: john-abe at apt202.net (John Cappiello) Date: Wed, 18 Apr 2007 13:47:03 -0400 Subject: [ABE.pm] visual basic humor In-Reply-To: <20070418174328.GA14863@knight.manxome.org> References: <20070418174328.GA14863@knight.manxome.org> Message-ID: <20070418174702.GM2760@apt202.net> On Wed, Apr 18, 2007 at 01:43:28PM -0400, Ricardo SIGNES wrote: > I just realized that it would be awesome to create a Shakespearian video about > programming, and it could be called "Much ADO about Nothing". That would be like The COM.edy of Errors. -- jcap From faber at linuxnj.com Wed Apr 18 11:05:22 2007 From: faber at linuxnj.com (Faber Fedor) Date: Wed, 18 Apr 2007 14:05:22 -0400 Subject: [ABE.pm] visual basic humor In-Reply-To: <20070418174328.GA14863@knight.manxome.org> References: <20070418174328.GA14863@knight.manxome.org> Message-ID: <300ccfa50704181105m38dcb6b5id6104df9d0d61d7e@mail.gmail.com> On 4/18/07, Ricardo SIGNES wrote: > > > I just realized that it would be awesome to create a Shakespearian video > about > programming, and it could be called "Much ADO about Nothing". I'd rather watch MACbeth; it's more accessible to lay people. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/abe-pm/attachments/20070418/b63eeb11/attachment.html From rjbs-perl-abe at lists.manxome.org Sat Apr 21 13:13:26 2007 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Sat, 21 Apr 2007 16:13:26 -0400 Subject: [ABE.pm] Minimal Perl for Unix and Linux People Message-ID: <20070421201326.GA2352@knight.manxome.org> I received a review / promotional copy of Minimal Perl for Unix and Linux People this week. I'll read it and post a review on the ABE.pm website soon. After that, it's available for lending. http://manning.com/maher/ -- rjbs From rjbs-perl-abe at lists.manxome.org Tue Apr 24 14:35:31 2007 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Tue, 24 Apr 2007 17:35:31 -0400 Subject: [ABE.pm] Yes, there will be a Pittsburgh Perl Workshop in 2007! Message-ID: <20070424213531.GB6688@knight> Forward of a forward of a forward of a ... Subject: Yes, there will be a Pittsburgh Perl Workshop in 2007! Not all of the details are settled yet, but we (the conference coordinators) wanted to give you a sneak peak. PPW '07 will be held on October 13 and 14, 2007 (Yes, TWO full days!). We'll be holding it at Carnegie Mellon University, the same as last year. We used your feedback from last year to overhaul this year's conference. Be sure to read about that, as well as the call for papers, when the PPW '07 web site launches in the next few months. In the meantime, if you are interested in being an early sponsor for prime placement in our recognitions, please contact sponsorship at pghpw.org. site: http://pghpw.org -- rjbs From john-abe at apt202.net Tue Apr 24 14:50:47 2007 From: john-abe at apt202.net (John Cappiello) Date: Tue, 24 Apr 2007 17:50:47 -0400 Subject: [ABE.pm] Yes, there will be a Pittsburgh Perl Workshop in 2007! In-Reply-To: <20070424213531.GB6688@knight> References: <20070424213531.GB6688@knight> Message-ID: <20070424215047.GW2760@apt202.net> On Tue, Apr 24, 2007 at 05:35:31PM -0400, Ricardo SIGNES wrote: > Forward of a forward of a forward of a ... [this is a reforward] -- jcap From rjbs-perl-abe at lists.manxome.org Thu Apr 26 13:52:51 2007 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Thu, 26 Apr 2007 16:52:51 -0400 Subject: [ABE.pm] may 2, beer, stuff! also, yapc! Message-ID: <20070426205251.GA10374@knight.manxome.org> So, first of all, May 2 is the first Wednesday of May. Beer and chow at Macht's Gute? Secondly, look at these pathetic numbers: http://conferences.mongueurs.net/yn2007/stats Even Houston.pm, the hosts, only have three confirmed attendees! ABE.pm can sweep in and beat them out easily! It's only like $90 to attend. YAPC is always a hoot! John C. and I are going. You should go, too. Thirdly, I'm half done with Minimal Perl. I'm of very mixed feelings on it, and will yammer more about it on Wednesday and on the website. -- rjbs From faber at linuxnj.com Thu Apr 26 18:13:24 2007 From: faber at linuxnj.com (Faber J. Fedor) Date: Thu, 26 Apr 2007 21:13:24 -0400 Subject: [ABE.pm] remote admin module? Message-ID: <20070427011324.GC17667@neptune.faber.nom> I'm writing a Perl script wherein I have to set IP addresses, routing tables, etc. on local and remote machines. I'm planning on just gathering up the info and using Net::SSH::Perl to do my stuff. Anyone have any better ideas? -- Regards, Faber Fedor President Linux New Jersey, Inc. 908-320-0357 800-706-0701 http://www.linuxnj.com From faber at linuxnj.com Thu Apr 26 18:15:24 2007 From: faber at linuxnj.com (Faber J. Fedor) Date: Thu, 26 Apr 2007 21:15:24 -0400 Subject: [ABE.pm] printing status messages Message-ID: <20070427011524.GD17667@neptune.faber.nom> Using GetOpts, I usually have a command line options like --debug or --verbose which causes my program to spit out a lot of status messages/debug statements. My code is peppered with a lot of stmts like this: if (is_debug) { print "This is a status message\n"; print "x = $x\t y=$y\n"; } Is there a better way? -- Regards, Faber Fedor President Linux New Jersey, Inc. 908-320-0357 800-706-0701 http://www.linuxnj.com From rjbs-perl-abe at lists.manxome.org Thu Apr 26 18:55:08 2007 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Thu, 26 Apr 2007 21:55:08 -0400 Subject: [ABE.pm] remote admin module? In-Reply-To: <20070427011324.GC17667@neptune.faber.nom> References: <20070427011324.GC17667@neptune.faber.nom> Message-ID: <20070427015508.GA2432@zodiac.codesimply.com> * "Faber J. Fedor" [2007-04-26T21:13:24] > I'm writing a Perl script wherein I have to set IP addresses, routing > tables, etc. on local and remote machines. > > I'm planning on just gathering up the info and using Net::SSH::Perl to > do my stuff. If you're doing it on Linux, there may be modules to do a bunch of that stuff. There's http://search.cpan.org/~dpates/IPTables-IPv4-0.98/IPv4.pm I don't see much else. I'd probably skip Net::SSH::Perl and use ssh and IPC::Run or something, but... it's hard to say. -- rjbs From rjbs-perl-abe at lists.manxome.org Thu Apr 26 18:57:49 2007 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Thu, 26 Apr 2007 21:57:49 -0400 Subject: [ABE.pm] printing status messages In-Reply-To: <20070427011524.GD17667@neptune.faber.nom> References: <20070427011524.GD17667@neptune.faber.nom> Message-ID: <20070427015749.GB2432@zodiac.codesimply.com> * "Faber J. Fedor" [2007-04-26T21:15:24] > Using GetOpts, I usually have a command line options like --debug or > --verbose which causes my program to spit out a lot of status > messages/debug statements. I use Getopt::Long::Descriptive and its bigger brother App::Cmd. At work, we use a superset of that which integrates with Log::Speak to do this sort of thing seamlessly. Still, you can just do this: sub debug { return unless $DEBUGGING; print join '', @_, "\n"; } debug "Your message here."; Or you could have: sub debug { return unless $DEBUG_LEVEL >= 5; ... } ...and have a "alert" and "info" sub for other debug levels. See also Log::Dispatch, etc. -- rjbs From faber at linuxnj.com Thu Apr 26 19:36:39 2007 From: faber at linuxnj.com (Faber Fedor) Date: Thu, 26 Apr 2007 22:36:39 -0400 Subject: [ABE.pm] remote admin module? In-Reply-To: <20070427015508.GA2432@zodiac.codesimply.com> References: <20070427011324.GC17667@neptune.faber.nom> <20070427015508.GA2432@zodiac.codesimply.com> Message-ID: <300ccfa50704261936m53962cddm2639493868f84850@mail.gmail.com> On 4/26/07, Ricardo SIGNES wrote: > > * "Faber J. Fedor" [2007-04-26T21:13:24] > > I'm writing a Perl script wherein I have to set IP addresses, routing > > tables, etc. on local and remote machines. > > > > I'm planning on just gathering up the info and using Net::SSH::Perl to > > do my stuff. > > If you're doing it on Linux, Like I'd attempt this on anything but! It's an interesting project: an implementation of "direct routing" (alittle more complicated than this ( http://www.linuxvirtualserver.org/VS-DRouting.html) which I view as "commercial IP spoofing". You, the end user, surfs to videos.linuxnj.com. The packets are rerouted to router.jcap.com, a Linux-based router which redirects them to videos.jcap.com which does the actual hosting of linuxnj's videos. www.jacp.com sends the packets back to you with video.linuxnj.com's IP address in the packets. What I'm writing is the program that sets up videos.linuxnj.com, router.jcap.com and videos.jcap.com. Supposedly it can all be done with scripts (as opposed to kernel modules). there may be modules to do a bunch of that stuff. Which is why I'm asking here. :-) I've looked around but haven't seen much. There's http://search.cpan.org/~dpates/IPTables-IPv4-0.98/IPv4.pm Interesting, but it looks to be local only. I'd probably skip Net::SSH::Perl and use ssh and IPC::Run or something, > but... > it's hard to say. Again, seems to be local only. -- faber -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/abe-pm/attachments/20070426/eefb1f03/attachment.html From rjbs-perl-abe at lists.manxome.org Thu Apr 26 20:10:41 2007 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Thu, 26 Apr 2007 23:10:41 -0400 Subject: [ABE.pm] remote admin module? In-Reply-To: <300ccfa50704261936m53962cddm2639493868f84850@mail.gmail.com> References: <20070427011324.GC17667@neptune.faber.nom> <20070427015508.GA2432@zodiac.codesimply.com> <300ccfa50704261936m53962cddm2639493868f84850@mail.gmail.com> Message-ID: <20070427031041.GB12038@knight.manxome.org> * Faber Fedor [2007-04-26T22:36:39] > > I'd probably skip Net::SSH::Perl and use ssh and IPC::Run or something, > > but... it's hard to say. > > Again, seems to be local only. Right. I'd have it run ssh. -- rjbs From fiedlert at gmail.com Fri Apr 27 04:58:15 2007 From: fiedlert at gmail.com (Ted Fiedler) Date: Fri, 27 Apr 2007 07:58:15 -0400 Subject: [ABE.pm] remote admin module? In-Reply-To: <20070427011324.GC17667@neptune.faber.nom> References: <20070427011324.GC17667@neptune.faber.nom> Message-ID: <814422ce0704270458v49621fcei4df60326a1738e28@mail.gmail.com> I second the IPC::Run recommendation. In the past I have used IO::Socket to create a service, IPC::Run to handle the running of system code and Crypt::CBC to encrypt the commands sent over the wire if necessary. I looked around for some code, but all I have is some really crappy code I wrote in a pinch. Have you ever looked into cfengine? I would usually only recommend it if you're maintaining LOTS of servers and you have total control over the boxes - but it may work for you? http://www.gnu.org/software/cfengine/ Ted On 4/26/07, Faber J. Fedor wrote: > > I'm writing a Perl script wherein I have to set IP addresses, routing > tables, etc. on local and remote machines. > > I'm planning on just gathering up the info and using Net::SSH::Perl to > do my stuff. > > Anyone have any better ideas? > > > -- > > Regards, > > Faber Fedor > President > Linux New Jersey, Inc. > 908-320-0357 > 800-706-0701 > > http://www.linuxnj.com > > > > _______________________________________________ > ABE-pm mailing list > ABE-pm at pm.org > http://mail.pm.org/mailman/listinfo/abe-pm > -- "You are never dedicated to something you have complete confidence in. No one is fanatically shouting that the sun is going to rise tomorrow. They know it's going to rise tomorrow. " -- Robert M Pirsig From rjbs-perl-abe at lists.manxome.org Fri Apr 27 08:55:11 2007 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Fri, 27 Apr 2007 11:55:11 -0400 Subject: [ABE.pm] printing status messages In-Reply-To: <20070427144606.GC17860@neptune.faber.nom> References: <20070427011524.GD17667@neptune.faber.nom> <20070427015749.GB2432@zodiac.codesimply.com> <20070427144606.GC17860@neptune.faber.nom> Message-ID: <20070427155511.GA23711@knight.office.icgroup.com> I'm replying to the list, since I don't think you'll be offended. * "Faber J. Fedor" [2007-04-27T10:46:06] > On 26/04/07 21:57 -0400, Ricardo SIGNES wrote: > > I use Getopt::Long::Descriptive and its bigger brother App::Cmd. At work, > > we use a superset of that which integrates with Log::Speak to do this sort > > of thing seamlessly. > > Got an example handy? http://search.cpan.org/dist/App-Cmd/lib/App/Cmd.pm is fairly well documented, including examples. http://rjbs.manxome.org/hacks/perl/jgal2flickr might be a decent first-pass example of GLD. -- rjbs From faber at linuxnj.com Fri Apr 27 10:24:46 2007 From: faber at linuxnj.com (Faber J. Fedor) Date: Fri, 27 Apr 2007 13:24:46 -0400 Subject: [ABE.pm] IPC:Run FM? Message-ID: <20070427172446.GD17860@neptune.faber.nom> What's the FM needed to get IPC::Run to work/report errors? My script is this: #!/usr/bin/perl -w use strict; use IPC::Run qw( run start pump finish timeout ) ; my @ssh = qw( ls ); my ( $in, $out, $err ); my $h = start \@ssh, \$in, \$out, \$err ; #, timeout( 10 ) ; $in = '/home/faber/'; pump $h while length $in ; # until $out =~ /ssword:/g ; warn $err if $err ; print $out ; exit(0); and whenever I hit the 'pump $h' line, I get a "Command terminated" and the debugger quits on me. How am I supposed to debug that? -- Regards, Faber Fedor President Linux New Jersey, Inc. 908-320-0357 800-706-0701 http://www.linuxnj.com From fiedlert at gmail.com Fri Apr 27 10:44:50 2007 From: fiedlert at gmail.com (Ted Fiedler) Date: Fri, 27 Apr 2007 13:44:50 -0400 Subject: [ABE.pm] IPC:Run FM? In-Reply-To: <20070427172446.GD17860@neptune.faber.nom> References: <20070427172446.GD17860@neptune.faber.nom> Message-ID: <814422ce0704271044g37939170wc0d03263327fe168@mail.gmail.com> >From my recollection: I would do something like: #!/usr/bin/perl use strict; use warnings; use IPC::Run qw( run timeout ); my @command = qw( ls -la ); my ( $buff, $in, $err, $exit ); eval{run \@command, \$in, \$buff}; $exit = ( $@ ) ? 1 : 0; print $buff if $buff; print "exit = $exit\n"; Hope that helps. Ted On 4/27/07, Faber J. Fedor wrote: > What's the FM needed to get IPC::Run to work/report errors? My script > is this: > > #!/usr/bin/perl -w > > use strict; > use IPC::Run qw( run start pump finish timeout ) ; > > my @ssh = qw( ls ); > my ( $in, $out, $err ); > > my $h = start \@ssh, \$in, \$out, \$err ; #, timeout( 10 ) ; > > $in = '/home/faber/'; > > pump $h while length $in ; # until $out =~ /ssword:/g ; > > warn $err if $err ; > print $out ; > > exit(0); > > and whenever I hit the 'pump $h' line, I get a "Command terminated" and > the debugger quits on me. How am I supposed to debug that? > > > > -- > > Regards, > > Faber Fedor > President > Linux New Jersey, Inc. > 908-320-0357 > 800-706-0701 > > http://www.linuxnj.com > > > > _______________________________________________ > ABE-pm mailing list > ABE-pm at pm.org > http://mail.pm.org/mailman/listinfo/abe-pm > -- "You are never dedicated to something you have complete confidence in. No one is fanatically shouting that the sun is going to rise tomorrow. They know it's going to rise tomorrow. " -- Robert M Pirsig From faber at linuxnj.com Fri Apr 27 10:52:45 2007 From: faber at linuxnj.com (Faber Fedor) Date: Fri, 27 Apr 2007 13:52:45 -0400 Subject: [ABE.pm] IPC:Run FM? In-Reply-To: <814422ce0704271044g37939170wc0d03263327fe168@mail.gmail.com> References: <20070427172446.GD17860@neptune.faber.nom> <814422ce0704271044g37939170wc0d03263327fe168@mail.gmail.com> Message-ID: <300ccfa50704271052s79b7cb05s4eaa16627683baca@mail.gmail.com> But I need to do the scripting technique, you know, like Expect. That's why I need the star/pump/finish thing to work. Your example worked on my box, so that's a good sign. :-) But why do you need to eval the 'run' command? They don't do that in TFM. On 4/27/07, Ted Fiedler wrote: > >From my recollection: I would do something like: From waltman at pobox.com Sat Apr 28 05:01:40 2007 From: waltman at pobox.com (Walt Mankowski) Date: Sat, 28 Apr 2007 08:01:40 -0400 Subject: [ABE.pm] printing status messages In-Reply-To: <20070427015749.GB2432@zodiac.codesimply.com> References: <20070427011524.GD17667@neptune.faber.nom> <20070427015749.GB2432@zodiac.codesimply.com> Message-ID: <20070428120140.GE30104@mawode.com> On Thu, Apr 26, 2007 at 09:57:49PM -0400, Ricardo SIGNES wrote: > * "Faber J. Fedor" [2007-04-26T21:15:24] > > Using GetOpts, I usually have a command line options like --debug or > > --verbose which causes my program to spit out a lot of status > > messages/debug statements. > > I use Getopt::Long::Descriptive and its bigger brother App::Cmd. At work, we > use a superset of that which integrates with Log::Speak to do this sort of > thing seamlessly. Still, you can just do this: > > sub debug { > return unless $DEBUGGING; > print join '', @_, "\n"; > } > > debug "Your message here."; > > Or you could have: > > sub debug { > return unless $DEBUG_LEVEL >= 5; > ... > } > > ...and have a "alert" and "info" sub for other debug levels. > > See also Log::Dispatch, etc. I second the idea of writing a simple debug function like Ric suggests. It really cleans up your code. You might also considering writing a version that uses printf, for those times where you want more control over the formatting. Here are the routines I use. They live in Util.pm, so they have to reference the $main package. # # dprint() and dprintf() are just like print() and printf(), except # they print to STDERR, and they only print if $main::DEBUG is true # (typically set with the --debug command line option) # sub dprint { print STDERR @_ if $main::DEBUG; } sub dprintf { printf STDERR @_ if $main::DEBUG; } Here are some examples of it in action. (It was a graphics program I was working on btw.) dprintf "(%f, %f)\n", $self->{X}, $self->{Y}; dprintf "(%d, %d) %04b\n", $x, $y, $outcode; dprintf "%d/%d faces rejected by back-face culling\n", $old_faces - scalar @faces, $old_faces; Walt From fiedlert at gmail.com Mon Apr 30 11:48:48 2007 From: fiedlert at gmail.com (Ted Fiedler) Date: Mon, 30 Apr 2007 14:48:48 -0400 Subject: [ABE.pm] may 2, beer, stuff! also, yapc! In-Reply-To: <20070426205251.GA10374@knight.manxome.org> References: <20070426205251.GA10374@knight.manxome.org> Message-ID: <814422ce0704301148w20ff2b3bwc1e15dd43526552@mail.gmail.com> On 4/26/07, Ricardo SIGNES wrote: > > So, first of all, May 2 is the first Wednesday of May. Beer and chow at > Macht's Gute? Ill be there. 6:30 OK? > > Even Houston.pm, the hosts, only have three confirmed attendees! ABE.pm can > sweep in and beat them out easily! It's only like $90 to attend. YAPC is > always a hoot! John C. and I are going. You should go, too. > I was really going to go this year w/ or w/o my employers blessing. But I opted for seeing Bob Dylan on June 26th in Hershey... Ted From rjbs-perl-abe at lists.manxome.org Mon Apr 30 12:10:49 2007 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Mon, 30 Apr 2007 15:10:49 -0400 Subject: [ABE.pm] may 2, beer, stuff! also, yapc! In-Reply-To: <814422ce0704301148w20ff2b3bwc1e15dd43526552@mail.gmail.com> References: <20070426205251.GA10374@knight.manxome.org> <814422ce0704301148w20ff2b3bwc1e15dd43526552@mail.gmail.com> Message-ID: <20070430191049.GA15296@knight.office.icgroup.com> * Ted Fiedler [2007-04-30T14:48:48] > On 4/26/07, Ricardo SIGNES wrote: > > So, first of all, May 2 is the first Wednesday of May. Beer and chow at > > Macht's Gute? > > Ill be there. 6:30 OK? Sounds gute. > > Even Houston.pm, the hosts, only have three confirmed attendees! ABE.pm can > > sweep in and beat them out easily! It's only like $90 to attend. YAPC is > > always a hoot! John C. and I are going. You should go, too. > > I was really going to go this year w/ or w/o my employers blessing. > But I opted for seeing Bob Dylan on June 26th in Hershey... :'( You will be missed. I gotta tell you, I'm really starting to doubt your commitment to sparkle motion. Let me know how much Dylan rocks. -- rjbs From faber at linuxnj.com Mon Apr 30 14:23:07 2007 From: faber at linuxnj.com (Faber Fedor) Date: Mon, 30 Apr 2007 17:23:07 -0400 Subject: [ABE.pm] may 2, beer, stuff! also, yapc! In-Reply-To: <20070426205251.GA10374@knight.manxome.org> References: <20070426205251.GA10374@knight.manxome.org> Message-ID: <300ccfa50704301423s35c46235i998dda365bf7a878@mail.gmail.com> On 4/26/07, Ricardo SIGNES wrote: > > So, first of all, May 2 is the first Wednesday of May. Beer and chow at > Macht's Gute? I'm up for it. > Even Houston.pm, the hosts, only have three confirmed attendees! ABE.pm can > sweep in and beat them out easily! It's only like $90 to attend. YAPC is > always a hoot! John C. and I are going. You should go, too. How are y'all planning on getting there? From rjbs-perl-abe at lists.manxome.org Mon Apr 30 14:35:09 2007 From: rjbs-perl-abe at lists.manxome.org (Ricardo SIGNES) Date: Mon, 30 Apr 2007 17:35:09 -0400 Subject: [ABE.pm] may 2, beer, stuff! also, yapc! In-Reply-To: <300ccfa50704301423s35c46235i998dda365bf7a878@mail.gmail.com> References: <20070426205251.GA10374@knight.manxome.org> <300ccfa50704301423s35c46235i998dda365bf7a878@mail.gmail.com> Message-ID: <20070430213505.GA10337@zodiac.codesimply.com> * Faber Fedor [2007-04-30T17:23:07] > > Even Houston.pm, the hosts, only have three confirmed attendees! ABE.pm can > > sweep in and beat them out easily! It's only like $90 to attend. YAPC is > > always a hoot! John C. and I are going. You should go, too. Flying out of PHL. I think it was about $250 round trip. Lodging is about $15-$20 per night on campus in dorms. There are other options, like hotels or "club quarters," too, but the dorms are good enough for us. -- rjbs