From doug.miles at bpxinternet.com Mon May 1 08:49:27 2000 From: doug.miles at bpxinternet.com (Douglas E. Miles) Date: Thu Aug 5 00:16:10 2004 Subject: Phoenix.pm: Meeting 05/04/2000 - Please note that this is Thurs. Message-ID: <390D8B67.92666177@bpxinternet.com> I thought I'd try having a meeting on a Thursday, to see if it might be better for some. My idea right now is to have the first Thursday of the month, and the 3rd Tuesday. Give me some feedback! We'll be having a Phoenix.pm meeting Thurday, May 4th at 7:00PM. It will be held at The Willow House, which is located at 149 W. McDowell Rd., which is just a block west of Bowne. -- For a list of the ways which technology has failed to improve our quality of life, press 3. From doug.miles at bpxinternet.com Mon May 1 09:09:58 2000 From: doug.miles at bpxinternet.com (Douglas E. Miles) Date: Thu Aug 5 00:16:10 2004 Subject: Phoenix.pm: HTML::Parser weirdness References: Message-ID: <390D9036.BA505161@bpxinternet.com> Scott Walters wrote: > > Hi all, Doug.. > > [Btw, from previous message, Hall Kinion is a headhunter, and not an > outstanding one at that]. > > If 'E0' was showing up, I would have a guess, but I see no significance to > 'A0'... If you're still battling this, post sources and let us have a go! > > -scott > > On Tue, 25 Apr 2000, Douglas E. Miles wrote: > > > Anyone out there using HTML::Parser? I'm using it to extract just text > > from HTML files. The strange thing is that hex A0 keeps showing up in > > the extracted text, but does not appear in the original file. Right > > now, I using a regex to filter them out, but I'd like to understand > > where they're coming from, and why. Any ideas? Thanks. Sorry this took so long. I've just been completely buried recently. Here is an example that comes with HTML::Parser, that I've hacked to show the problem. Attached is the program, htext, and a test html file, admin.html. Just type htext admin.html > admin.txt (after making it executable), and you will see AOs in admin.txt. -- - Doug "A synonym is a word you use when you can't spell the word you first thought of." --Burt Bacharach -------------- next part -------------- #!/usr/bin/perl -w # Extract all plain text from an HTML file use strict; use HTML::Parser 3.00 (); my $text; my %inside; sub tag { my($tag, $num) = @_; $inside{$tag} += $num; print " "; # not for all tags } sub text { return if $inside{script} || $inside{style}; $text .= $_[0]; #print $_[0]; print $text; } HTML::Parser->new(api_version => 3, handlers => [start => [\&tag, "tagname, '+1'"], end => [\&tag, "tagname, '-1'"], text => [\&text, "dtext"], ], marked_sections => 1, )->parse_file(shift) || die "Can't open file: $!\n"; -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/archives/phoenix-pm/attachments/20000501/1471063e/admin.html From forsythe at primenet.com Mon May 1 23:37:48 2000 From: forsythe at primenet.com (Tran Forsythe) Date: Thu Aug 5 00:16:10 2004 Subject: Phoenix.pm: Meeting 05/04/2000 - Please note that this is Thurs. References: <390D8B67.92666177@bpxinternet.com> Message-ID: <000b01bfb3f0$2c511ee0$0100a8c0@tran> *shrug* Sure, I'm up for it. The only times I miss are usually because I'm too fatigued, and not due to other commitments. -Kurt ------ "Push to test." "Release to detonate." -Brad Morrison From Beaves at aol.com Tue May 2 09:16:45 2000 From: Beaves at aol.com (Beaves@aol.com) Date: Thu Aug 5 00:16:10 2004 Subject: Phoenix.pm: Meeting 05/04/2000 - Please note that this is Thurs. Message-ID: <9a.43b73e2.26403d4d@aol.com> I'm not flying on Thursday and can make it. I'll see yoous guys dere. From Bryan.Lane at VITALPS.COM Tue May 2 11:19:56 2000 From: Bryan.Lane at VITALPS.COM (Bryan Lane) Date: Thu Aug 5 00:16:10 2004 Subject: Phoenix.pm: Meeting 05/04/2000 - Please note that this is Thu rs. Message-ID: I'll try to be there. Generally speaking, Thursday is a better day for me anyway. -----Original Message----- From: Douglas E. Miles [mailto:doug.miles@bpxinternet.com] Sent: Monday, May 01, 2000 6:49 AM To: Phoenix.pm Subject: Phoenix.pm: Meeting 05/04/2000 - Please note that this is Thurs. I thought I'd try having a meeting on a Thursday, to see if it might be better for some. My idea right now is to have the first Thursday of the month, and the 3rd Tuesday. Give me some feedback! We'll be having a Phoenix.pm meeting Thurday, May 4th at 7:00PM. It will be held at The Willow House, which is located at 149 W. McDowell Rd., which is just a block west of Bowne. -- For a list of the ways which technology has failed to improve our quality of life, press 3. From Mark.Pease at motorola.com Tue May 2 12:54:34 2000 From: Mark.Pease at motorola.com (Mark Pease) Date: Thu Aug 5 00:16:10 2004 Subject: Phoenix.pm: Meeting 05/04/2000 - Please note that this is Thurs. References: <390D8B67.92666177@bpxinternet.com> Message-ID: <390F165A.4E9FA3C6@motorola.com> Thursdays are out for me for the next couple of months (and then Thesdays are out starting late Aug. so that I can teach the Perl Class at CGCC.) Hrumph.... "Douglas E. Miles" wrote: > > I thought I'd try having a meeting on a Thursday, to see if it might be > better for some. My idea right now is to have the first Thursday of the > month, and the 3rd Tuesday. Give me some feedback! > > We'll be having a Phoenix.pm meeting Thurday, May 4th at 7:00PM. It will > be held at The Willow House, which is located at 149 W. McDowell Rd., > which is just a block west of Bowne. > > -- > For a list of the ways which technology has failed > to improve our quality of life, press 3. -- Mark Pease Mark.Pease@motorola.com Motorola DigitalDNA(tm) Laboratories perl@perl.sps.mot.com 2200 W. Broadway Rd. Phone:(480)655-6950 Mail Stop: AZ09 M350 Mesa, AZ 85202 Pager:(800)381-3304 FAX:(480)655-6192 Co-Author (with Carl Dichter) of "Software Engineering with Perl" From janis at primenet.com Tue May 2 12:56:53 2000 From: janis at primenet.com (Janis) Date: Thu Aug 5 00:16:10 2004 Subject: Phoenix.pm: Meeting 05/04/2000 - Please note that this is Thu In-Reply-To: from "Bryan Lane" at May 02, 2000 09:19:56 AM Message-ID: <200005021756.KAA01896@usr09.primenet.com> I assume, since it's at the Willow House, it's a social meeting? I'll try and make it. -H. From doug.miles at bpxinternet.com Tue May 2 10:28:06 2000 From: doug.miles at bpxinternet.com (Douglas E. Miles) Date: Thu Aug 5 00:16:10 2004 Subject: Phoenix.pm: Meeting 05/04/2000 - Please note that this is Thu References: <200005021756.KAA01896@usr09.primenet.com> Message-ID: <390EF406.A8DCE3E@bpxinternet.com> Janis wrote: > > I assume, since it's at the Willow House, it's a social meeting? > I'll try and make it. > -H. Good Assumption! :) -- - Doug "A synonym is a word you use when you can't spell the word you first thought of." --Burt Bacharach From doug.miles at bpxinternet.com Tue May 2 10:29:31 2000 From: doug.miles at bpxinternet.com (Douglas E. Miles) Date: Thu Aug 5 00:16:10 2004 Subject: Phoenix.pm: Meeting 05/04/2000 - Please note that this is Thurs. References: <390D8B67.92666177@bpxinternet.com> <390F165A.4E9FA3C6@motorola.com> Message-ID: <390EF45B.B2F46999@bpxinternet.com> Mark Pease wrote: > > Thursdays are out for me for the next couple of months (and then > Thesdays > are out starting late Aug. so that I can teach the Perl Class at CGCC.) > > Hrumph.... Well, the idea was to have one on Thurs. and one on Tues, so you can make at least one. Unless you're saying that both Tues. and Thurs. are out? -- - Doug "A synonym is a word you use when you can't spell the word you first thought of." --Burt Bacharach From edelsys at edelsys.com Tue May 2 16:03:47 2000 From: edelsys at edelsys.com (EdelSys Consulting) Date: Thu Aug 5 00:16:10 2004 Subject: Phoenix.pm: Meeting 05/04/2000 - Please note that this is Thu In-Reply-To: <390EF406.A8DCE3E@bpxinternet.com> References: <200005021756.KAA01896@usr09.primenet.com> Message-ID: <3.0.6.32.20000502140347.009039f0@swlink.net> At 10:28 AM 5/2/00 -0500, you wrote: >Janis wrote: >> >> I assume, since it's at the Willow House, it's a social meeting? >> I'll try and make it. >> -H. > >Good Assumption! :) > >-- >- Doug > >"A synonym is a word you use when you can't spell the >word you first thought of." >--Burt Bacharach > Janis is going? I'll be there! =) Tony From Mark.Pease at motorola.com Tue May 2 15:54:25 2000 From: Mark.Pease at motorola.com (Mark Pease) Date: Thu Aug 5 00:16:10 2004 Subject: Phoenix.pm: Meeting 05/04/2000 - Please note that this is Thurs. References: <390D8B67.92666177@bpxinternet.com> <390F165A.4E9FA3C6@motorola.com> <390EF45B.B2F46999@bpxinternet.com> Message-ID: <390F4081.8070D85E@motorola.com> "Douglas E. Miles" wrote: > > Mark Pease wrote: > > > > Thursdays are out for me for the next couple of months (and then > > Thesdays > > are out starting late Aug. so that I can teach the Perl Class at CGCC.) > > > > Hrumph.... > > Well, the idea was to have one on Thurs. and one on Tues, so you can > make at least one. Unless you're saying that both Tues. and Thurs. are > out? > I have some control over what will happen in the Fall with Thursdays, so I might be able to make it then. Tuesdays are completely out. -- Mark Pease Mark.Pease@motorola.com Motorola DigitalDNA(tm) Laboratories perl@perl.sps.mot.com 2200 W. Broadway Rd. Phone:(480)655-6950 Mail Stop: AZ09 M350 Mesa, AZ 85202 Pager:(800)381-3304 FAX:(480)655-6192 Co-Author (with Carl Dichter) of "Software Engineering with Perl" From root at nebuchadnezzar.slowass.net Tue May 2 20:27:03 2000 From: root at nebuchadnezzar.slowass.net (Scott Walters) Date: Thu Aug 5 00:16:10 2004 Subject: Phoenix.pm: Meeting 05/04/2000 - Please note that this is Thu In-Reply-To: <3.0.6.32.20000502140347.009039f0@swlink.net> Message-ID: > > Janis is going? I'll be there! =) > > Tony > > Uh, I don't think Heather ('Janis') and I will be able to make it, uh... -scott From edelsys at edelsys.com Tue May 2 23:38:09 2000 From: edelsys at edelsys.com (EdelSys Consulting) Date: Thu Aug 5 00:16:10 2004 Subject: Phoenix.pm: Meeting 05/04/2000 - Please note that this is Thu In-Reply-To: References: <3.0.6.32.20000502140347.009039f0@swlink.net> Message-ID: <3.0.6.32.20000502213809.00924ab0@swlink.net> At 06:27 PM 5/2/00 -0700, you wrote: >> >> Janis is going? I'll be there! =) >> >> Tony >> >> > >Uh, I don't think Heather ('Janis') and I will be able to make it, uh... > >-scott > I know. I tease too much. Sorry. Tell you what, I will come disguised as a ferret, and since ferrets are usually very quiet creatures, there will be no problemo. =) Tony -- -- Anthony R. Nemmer -- EdelSys Consulting -- http://www.swlink.net/~edelsys -- edelsys@edelsys.com -- ICQ #14638605 -- EFNet IRC Nicks: Teratogen PerlGod LLamaLord -- vCard: http://www.edelsys.com/nemmer.vcf -- (480) 968-6438 -- P.O. Box 1883, Tempe, Arizona 85280-1883 -- From forsythe at primenet.com Fri May 5 03:39:27 2000 From: forsythe at primenet.com (Tran Forsythe) Date: Thu Aug 5 00:16:10 2004 Subject: Phoenix.pm: *mutter* Message-ID: <001a01bfb66d$6d822740$0100a8c0@tran> I'd been planning on attending.. (I particularly enjoy the social meetings) but someone dorked w/ one of our dept.'s main firewalls and everything went boom until 11pm.. *grumble* Anyhow, sorry I missed it. -Kurt ------ "Push to test." "Release to detonate." -Brad Morrison From root at nebuchadnezzar.slowass.net Sat May 6 06:53:31 2000 From: root at nebuchadnezzar.slowass.net (Scott Walters) Date: Thu Aug 5 00:16:10 2004 Subject: Phoenix.pm: ILOVEYOU (fwd) Message-ID: Hi Folks.. I know this isn't phoenix.vba.org, but I thought you guys might not have been lucky enough to get the ILOVEYOU self-chainmailer program. Since I couldn't get it to run on my Unix system, I had to help it along a little and forward it. The code is a riot. Yes, I know, people have been doing these things for years (New Hackers Dictionary mentions a popular one for VAX/VMS). Kudos to all of the Windows users on the list for being smart enough NOT to click the attachment if they received this thing before. If for some reason you want to run this one, remove the syntax error from the top of it =) -scott ---------- Forwarded message ---------- Received: from the.endless.org (root@endless.org [209.207.232.40]) by slowass.net (8.8.8/8.8.8) with ESMTP id HAA03681 for ; Fri, 5 May 2000 07:09:51 -0700 (PDT) Received: from mail.netbsd.org (mail.netbsd.org [155.53.1.253]) by the.endless.org (8.9.3/endless) with SMTP id JAA03494 for ; Fri, 5 May 2000 09:48:42 -0400 Received: (qmail 25560 invoked by uid 605); 5 May 2000 13:47:56 -0000 Received: (qmail 25517 invoked from network); 5 May 2000 13:47:49 -0000 Received: from mail.kemper.org (207.193.83.2) by mail.netbsd.org with SMTP; 5 May 2000 13:47:49 -0000 Received: from km_mail.kemper.org (km-mail.kemper.org [207.193.83.16]) by mail.kemper.org (8.8.8/8.8.8) with ESMTP id IAA23608 for ; Fri, 5 May 2000 08:47:49 -0500 (CDT) Received: by km_mail.kemper.org with MailBeamer v3.24 (WinNT 4.x) ; Fri, 5 May 2000 09:00:58 -0500 From: "John A. Maier" To: "'netbsd-help'" Subject: ILOVEYOU Date: Fri, 5 May 2000 08:46:00 -0500 X-Mailer: MailBeamer v3.24 (WinNT 4.x) Message-ID: <200134858.4285092236.182@km_mail.kemper.org> X-Priority: 3 Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="_NextPart_0_KFkMaputoqKpvqullZCpLosUNPo" Sender: netbsd-help-owner@netbsd.org Precedence: list Delivered-To: netbsd-help@netbsd.org kindly check the attached LOVELETTER coming from me.[[ LOVE-L~1.VBS : 3387 in LOVE-L~1.VBS ]] -------------- next part -------------- A non-text attachment was scrubbed... Name: LOVE-L~1.VBS Type: application/octet-stream Size: 10309 bytes Desc: Url : http://mail.pm.org/archives/phoenix-pm/attachments/20000506/e8b62fee/LOVE-L1.obj From doug.miles at bpxinternet.com Mon May 15 15:21:27 2000 From: doug.miles at bpxinternet.com (Douglas E. Miles) Date: Thu Aug 5 00:16:10 2004 Subject: Phoenix.pm: Meeting 05/16/2000 Message-ID: <39205C47.8A74322A@bpxinternet.com> Sorry that this is so late. Last week was one of those weeks. We'll be having a Phoenix.pm meeting Tuesday, May 16th at 7:00PM. It will be held at Bowne, which is located at 1500 N. Central Avenue, which is on the Southwest corner of Central and McDowell. The parking lot is gated, so just press the button on the intercom, and tell the receptionist that you are there for the Perl meeting. Park in the lot that is straight ahead from the entrance on the South side of McDowell. Park in any uncovered, non-reserved space. Proceed to the main lobby, which is on the Northeast side of the parking lot. I'll be presenting a simple indexing and search engine. Feedback is encouraged. -- For a list of the ways which technology has failed to improve our quality of life, press 3. From doug.miles at bpxinternet.com Tue May 16 13:13:45 2000 From: doug.miles at bpxinternet.com (Douglas E. Miles) Date: Thu Aug 5 00:16:10 2004 Subject: RESCHEDULE: Phoenix.pm: Meeting 05/23/2000 References: <39205C47.8A74322A@bpxinternet.com> Message-ID: <39218FD9.573B92EC@bpxinternet.com> Sorry, I'm out with the flu today. I'll have to reschedule the meeting for next Tuesday. Sorry for the inconvenience. Repeat: No meeting tonight! "Douglas E. Miles" wrote: > > Sorry that this is so late. Last week was one of those weeks. > > We'll be having a Phoenix.pm meeting Tuesday, May 16th at 7:00PM. > It will be held at Bowne, which is located at 1500 N. Central Avenue, > which is on the Southwest corner of Central and McDowell. The parking > lot is gated, so just press the button on the intercom, and tell the > receptionist that you are there for the Perl meeting. Park in the lot > that is straight ahead from the entrance on the South side of McDowell. > Park in any uncovered, non-reserved space. Proceed to the main lobby, > which is on the Northeast side of the parking lot. > > I'll be presenting a simple indexing and search engine. Feedback is > encouraged. > > -- > For a list of the ways which technology has failed > to improve our quality of life, press 3. -- - Doug "A synonym is a word you use when you can't spell the word you first thought of." --Burt Bacharach From Pablo at zunigatech.com Tue May 16 14:08:48 2000 From: Pablo at zunigatech.com (Pablo@zunigatech.com) Date: Thu Aug 5 00:16:10 2004 Subject: Phoenix.pm: Jop Openings in Texas In-Reply-To: <39218FD9.573B92EC@bpxinternet.com> References: <39205C47.8A74322A@bpxinternet.com> <39218FD9.573B92EC@bpxinternet.com> Message-ID: <00051612121502.00710@pvelasquez> Greetings everyone, thought I'd forward this to you: Programmer Position This is a full time position on the Development Team. The base pay for this position will be based on experience ($45000-$75000 equivalent). The position will be responsible for updating and creating original code in Perl for deployment in Internet applications. These applications will range from rapidly developed prototypes to end-user applications. Other duties will include programming in HTML. Knowledge of C, SQL/ODBC, JavaScript (ECMA) and DHTML, as well as a basic knowledge of UNIX will be necessary. From time to time, duties could also include outside client work, as assigned. This could include but not be limited to UNIX, HTML and cgi programming, dynamic content generation and design, interface programming with CTS software products, and database programming. Candidates should have at least 2-3 years solid experience. This position will report to the Senior Programmer. Web Designer Position This is a full time position on the Development Team. The base pay for this position will be based on experience ($35000-$50000 equivalent). This position is responsible for web site programming, functional as well as aesthetic graphics, layout, interface testing, and client work. Job duties will include, but not be limited to, web site design and maintenance, product manual layout and utilization testing, interface design and testing, web, CD, and software functionality programming and user testing. Must be deadline oriented, detail minded, and have an understanding of browser compatibility issues. Candidates should have at least 1-2 years solid web experience. as well as a degree in design or related field or equivalent experience. This position will report to the Senior Designer. CTI Developer Position This is a full time position on the Development Team. The base pay for this position will be based on experience ($55000-$75000 equivalent). The position will be responsible for updating and creating original code in C for deployment in telephony applications. These applications will range from rapidly developed prototypes to end-user applications. Knowledge of C and SQL/ODBC, HTTP, TCP/IP and socket protocols, as well as a basic knowledge of UNIX and NT will be necessary. Hardware and software knowledge of Dialogix products is a must. From time to time, duties could also include outside client work, as assigned. This could include but not be limited to UNIX, NT and C programming, interface programming with CTS software products, and database programming. Look forward to hearing from you. I'd also like to get a copy of your resume in MS word please so that I might understand more of what you've worked on in the past. All the Best- Térès Counts Onsite Contract Services 11111 Wilcrest Green, Suite 425 Houston, Texas 77042 713-361-9060 From Pablo at zunigatech.com Fri May 19 22:15:28 2000 From: Pablo at zunigatech.com (Pablo@zunigatech.com) Date: Thu Aug 5 00:16:10 2004 Subject: Phoenix.pm: open sesame Message-ID: <00051920192601.01219@pvelasquez> Greetings: Hope everyone is doing well. I'm looking to automate logging into a server and I wanted to see if I could do it with perl, meaning, use perl as a shell script. I don't plan on using this script as a CGI script! :) but use it like any shell script, to automate tasks... I noticed this book won't be out till July: Perl for System Administration by David N. Blank-Edelman, Linda Mui (Editor) Here's what I've tried so far: ----------the script: #!/usr/bin/perl-wT $ENV{"PATH"} = ""; use strict; open(SSH, "| /usr/bin/ssh -c 3des -l username 127.0.0.1"); print SSH "my_password"; close(SSH); ----------and what I get in response: [terminal]# perl s_download_db.cgi (here I execute the script) Pseudo-terminal will not be allocated because stdin is not a terminal. username@127.0.0.1's password: ------------ I'm wondering how I could "give" SSH the password? Thanks so much. -Pablo From edelsys at edelsys.com Sat May 20 00:11:13 2000 From: edelsys at edelsys.com (EdelSys Consulting) Date: Thu Aug 5 00:16:10 2004 Subject: Phoenix.pm: open sesame In-Reply-To: <00051920192601.01219@pvelasquez> Message-ID: <3.0.6.32.20000519221113.007bb100@swlink.net> At 08:15 PM 5/19/00 -0700, you wrote: >Greetings: >Hope everyone is doing well. > >I'm looking to automate logging into a server and >I wanted to see if I could do it with perl, meaning, use perl as a shell >script. I don't plan on using this script as a CGI script! :) >but use it like any shell script, to automate tasks... > >I noticed this book won't be out till July: >Perl for System Administration >by David N. Blank-Edelman, Linda Mui (Editor) > >Here's what I've tried so far: >----------the script: > >#!/usr/bin/perl-wT > >$ENV{"PATH"} = ""; > >use strict; > >open(SSH, "| /usr/bin/ssh -c 3des -l username 127.0.0.1"); >print SSH "my_password"; >close(SSH); > >----------and what I get in response: > >[terminal]# perl s_download_db.cgi (here I execute the script) > >Pseudo-terminal will not be allocated because stdin is not a terminal. >username@127.0.0.1's password: > >------------ > >I'm wondering how I could "give" SSH the password? > >Thanks so much. > >-Pablo > Perl + Expect should do the trick. Tony -- -- Anthony R. Nemmer -- EdelSys Consulting -- http://www.swlink.net/~edelsys -- edelsys@edelsys.com -- ICQ #14638605 -- EFNet IRC Nicks: Teratogen PerlGod LLamaLord -- vCard: http://www.edelsys.com/nemmer.vcf -- (480) 968-6438 -- P.O. Box 1883, Tempe, Arizona 85280-1883 -- Brian Wilson is God! =) From kev at primenet.com Sat May 20 01:10:28 2000 From: kev at primenet.com (Kevin Buettner) Date: Thu Aug 5 00:16:10 2004 Subject: Phoenix.pm: open sesame In-Reply-To: Pablo@zunigatech.com "Phoenix.pm: open sesame" (May 19, 8:15pm) References: <00051920192601.01219@pvelasquez> Message-ID: <1000520061027.ZM22660@saguaro.lan> On May 19, 8:15pm, Pablo@zunigatech.com wrote: > Here's what I've tried so far: > ----------the script: > > #!/usr/bin/perl-wT > > $ENV{"PATH"} = ""; > > use strict; > > open(SSH, "| /usr/bin/ssh -c 3des -l username 127.0.0.1"); > print SSH "my_password"; > close(SSH); > > ----------and what I get in response: > > [terminal]# perl s_download_db.cgi (here I execute the script) > > Pseudo-terminal will not be allocated because stdin is not a terminal. > username@127.0.0.1's password: > > ------------ > > I'm wondering how I could "give" SSH the password? In order to make this work, you'll need to use IO::Pty. However, I don't think it's really a good idea to encode your password or your passphrase in your script. A better approach (which also won't require the use of IO::Pty) would be to use ssh-keygen to generate a pair of authentication keys which are protected by a passphrase. Once this is done, you can add the public key to ~/.ssh/authorized_keys on the remote machine. And then you can use ssh-agent (and ssh-add) on the local machine to run commands on the remote machine without being continuously prompted for a password on the local machine. Note that you will have to enter a passphrase when you run ssh-add, but you will do this interactively and it will not appear in any script. This means that your passphrase is still protected. You are able to run automated scripts because ssh-agent manages your authentication for you (once the passphrase has been added via ssh-add). See the man page for ssh, ssh-keygen, ssh-agent, and ssh-add for more information. I have a perl script which finds a running ssh-agent process and sets up the appropriate environment variables if you're interested. (This is useful if you tend to run ssh-agent after you've started your X session and want several shells to use the same authentication daemon. It could also be used by cron scripts to find a preestablished agent.) Let me know if you want it. Finally, I'll note that it is possible to use ssh-keygen to generate a public/private key that is unprotected by a passphrase. You will want to think long and hard about what you're doing before doing this because this means that if someone compromises an account that has such a key pair, your account on the remote machine(s) are compromised as well. OTOH, with ssh-agent, you have the ability to add and remove keys at will, so the truly paranoid would run ssh-agent, run the (possibly automated) ssh commands, and finally run "ssh-add -d" to remove the identity added by the first ssh-add command. Kevin -- Kevin Buettner kev@primenet.com, kevinb@redhat.com From Beaves at aol.com Sun May 21 01:05:40 2000 From: Beaves at aol.com (Beaves@aol.com) Date: Thu Aug 5 00:16:10 2004 Subject: Phoenix.pm: mySQL question Message-ID: I would think this would be a simple solution, as it would seem an often occurrence. I want to update a particular column, but the where clause contains columns from two tables. I have tried including the other table in the UPDATE section after the first one, but I get an error in that case. Here is what I want to do: UPDATE icm_priv, icm_groups SET icm_priv.priv=5 WHERE icm_priv.gid=icm_groups.gid and icm_priv.uid=icm_groups.owner; In english, set the priviledge to 5 for each member where that member is an owner of a group. It would seem to me to be a common occurrence, but mySQL has not accepted any syntax that I've thrown at it. Does mySQL have the capability to update a record using a where clause that uses two separate tables? I know I could do this in two steps using DBI, but that just seems like such a waste. From Pablo at zunigatech.com Sun May 21 04:04:41 2000 From: Pablo at zunigatech.com (Pablo@zunigatech.com) Date: Thu Aug 5 00:16:10 2004 Subject: Phoenix.pm: open sesame In-Reply-To: <3.0.6.32.20000519221113.007bb100@swlink.net> References: <3.0.6.32.20000519221113.007bb100@swlink.net> Message-ID: <00052102175300.01521@pvelasquez> Tony: I'm not sure if you've run into this before but I did install Expect.pm and then went to install IO::Pty but got an error. 1. cd .cpan 2. build 3. cd IO-Tty-0.3 4. make ... as below... I've been reading through comp.lang.perl.modules but no one has posted that particular question. Here's the error I posted to that group: error--------------------- [root@localhost IO-Tty-0.03]# make cc -c -Dbool=char -DHAS_BOOL -I/usr/local/include -O2 -DVERSION=\"0.03\" -DXS_VERSION=\"0.03\" -fpic -I/usr/lib/perl5/5.00503/i386-linux/CORE -DPTYRANGE0=\"abcdepqrstuvwxyz\" -DPTYRANGE1=\"0123456789abcdef\" -DPTYTEMPLATE=\"/dev/ptyXY\" Tty.cTty.xs: In function `xsignal': Tty.xs:352: warning: assignment from incompatible pointer type Tty.xs:357: warning: return from incompatible pointer type cc: installation problem, cannot exec `as': No such file or directory make: *** [Tty.o] Error 1 ------------------------------ I'm running RH 6.2. Hope everyone's having a good weekend, just got the Perl Journal in the mail on Friday, and was just reading about Home Automation with Perl. Pretty scary stuff :) -Pablo On Fri, 19 May 2000, you wrote: > At 08:15 PM 5/19/00 -0700, you wrote: > >Greetings: > >Hope everyone is doing well. > > > >I'm looking to automate logging into a server and > >I wanted to see if I could do it with perl, meaning, use perl as a shell > >script. I don't plan on using this script as a CGI script! :) > >but use it like any shell script, to automate tasks... > > > >I noticed this book won't be out till July: > >Perl for System Administration > >by David N. Blank-Edelman, Linda Mui (Editor) > > > >Here's what I've tried so far: > >----------the script: > > > >#!/usr/bin/perl-wT > > > >$ENV{"PATH"} = ""; > > > >use strict; > > > >open(SSH, "| /usr/bin/ssh -c 3des -l username 127.0.0.1"); > >print SSH "my_password"; > >close(SSH); > > > >----------and what I get in response: > > > >[terminal]# perl s_download_db.cgi (here I execute the script) > > > >Pseudo-terminal will not be allocated because stdin is not a terminal. > >username@127.0.0.1's password: > > > >------------ > > > >I'm wondering how I could "give" SSH the password? > > > >Thanks so much. > > > >-Pablo > > > > Perl + Expect should do the trick. > > Tony > > > -- > -- Anthony R. Nemmer -- EdelSys Consulting > -- http://www.swlink.net/~edelsys -- edelsys@edelsys.com > -- ICQ #14638605 -- EFNet IRC Nicks: Teratogen PerlGod LLamaLord > -- vCard: http://www.edelsys.com/nemmer.vcf > -- (480) 968-6438 -- P.O. Box 1883, Tempe, Arizona 85280-1883 > -- > > Brian Wilson is God! =) -- From kev at primenet.com Sun May 21 11:28:18 2000 From: kev at primenet.com (Kevin Buettner) Date: Thu Aug 5 00:16:10 2004 Subject: Phoenix.pm: open sesame In-Reply-To: Pablo@zunigatech.com "Re: Phoenix.pm: open sesame" (May 21, 2:04am) References: <3.0.6.32.20000519221113.007bb100@swlink.net> <00052102175300.01521@pvelasquez> Message-ID: <1000521162818.ZM25130@saguaro.lan> On May 21, 2:04am, Pablo@zunigatech.com wrote: > error--------------------- > [root@localhost IO-Tty-0.03]# make > cc -c -Dbool=char -DHAS_BOOL -I/usr/local/include -O2 -DVERSION=\"0.03\" -DXS_VERSION=\"0.03\" -fpic -I/usr/lib/perl5/5.00503/i386-linux/CORE -DPTYRANGE0=\"abcdepqrstuvwxyz\" -DPTYRANGE1=\"0123456789abcdef\" -DPTYTEMPLATE=\"/dev/ptyXY\" Tty.cTty.xs: In function `xsignal': > Tty.xs:352: warning: assignment from incompatible pointer type > Tty.xs:357: warning: return from incompatible pointer type > cc: installation problem, cannot exec `as': No such file or directory > make: *** [Tty.o] Error 1 > ------------------------------ > > I'm running RH 6.2. If the message is to be believed, it looks like you have an installation problem. Make sure that /usr/bin is on your path. Then make sure that /usr/bin/as exists and has appropriate execute permissions set. You might create a simple "Hello, world" program (in C) and attempt to compile it. The command "cc -v -o hello hello.c" might yield some interesting and helpful messages. If you find that you're missing /usr/bin/as, it is likely that you'll need to (re)install binutils-2.9.5.0.22-6. Also, please read my other post regarding ssh. There are ways to solve your specific problem of supplying a password to ssh besides having the script send a password to the ssh program. However, the technique of using ptys to supply input to a program that expects to read from a terminal is a useful one to learn, so you should attempt to solve your installation problem as well. Kevin -- Kevin Buettner kev@primenet.com, kevinb@redhat.com From root at nebuchadnezzar.slowass.net Sun May 21 00:11:08 2000 From: root at nebuchadnezzar.slowass.net (Scott Walters) Date: Thu Aug 5 00:16:10 2004 Subject: Phoenix.pm: mySQL question In-Reply-To: Message-ID: Tim, mSQL and MySQL are both good databases for a number of things, but they are both relatively simple compared to some large commercial ones. (On the other hand, they compare favorably feature-wise to other large commercial ones). The feature you want here is a "subquery", where the output of a query is used directly in another query. On Sun, 21 May 2000 Beaves@aol.com wrote: > I would think this would be a simple solution, as it would seem an often > occurrence. > > I want to update a particular column, but the where clause contains columns > from two tables. I have tried including the other table in the UPDATE > section after the first one, but I get an error in that case. > > Here is what I want to do: > UPDATE icm_priv, icm_groups SET icm_priv.priv=5 WHERE > icm_priv.gid=icm_groups.gid > and > icm_priv.uid=icm_groups.owner; > This would look like, in Postgres (which is free and has more features then mSQL and MySQL, but isn't as stable or fast, in my experience): UPDATE icm_priv, icm_groups SET icm_priv.priv=5 WHERE icm_priv.gid IN ( SELECT icm_priv.gid FROM icm_priv, icm_groups WHERE icm_priv.gid=icm_groups.gid AND icm_priv.uid=icm_groups.owner); Actually, there are other ways that could be written, but thats a common "trick". If you dont want to switch databases (as you dont need these features most of the time, or you cant switch, etc), you can always just do it in two parts: select all of the ids, then formulate a query with a 'WHERE icm_priv.uid IN ($listofids)' in it. This is twice as many steps, and requires you to loop through all of the records from the first query, and join them together with ,'s, but it really isn't that bad as long as you are only trying to fake one subquery =) Hope this helps! If I was too vague, swat me, and I'll cough up the goods. > In english, set the priviledge to 5 for each member where that member is an > owner of a group. > > It would seem to me to be a common occurrence, but mySQL has not accepted any > syntax that I've thrown at it. Does mySQL have the capability to update a > record using a where clause that uses two separate tables? > > I know I could do this in two steps using DBI, but that just seems like such > a waste. > Ooops, I missed this last sentance on my first read-through. Sorry to repeat to you what you already know. -scott From root at nebuchadnezzar.slowass.net Sun May 21 00:21:02 2000 From: root at nebuchadnezzar.slowass.net (Scott Walters) Date: Thu Aug 5 00:16:10 2004 Subject: Phoenix.pm: mySQL question In-Reply-To: Message-ID: > UPDATE icm_priv, icm_groups > SET icm_priv.priv=5 > WHERE icm_priv.gid IN ( > SELECT icm_priv.gid > FROM icm_priv, icm_groups > WHERE icm_priv.gid=icm_groups.gid > AND icm_priv.uid=icm_groups.owner); Oooops, more sloppy replying from me leads to misinformation! should be 'UPDATE icm_priv' only. -s From Pablo at zunigatech.com Mon May 22 03:43:59 2000 From: Pablo at zunigatech.com (Pablo@zunigatech.com) Date: Thu Aug 5 00:16:10 2004 Subject: Phoenix.pm: open sesame In-Reply-To: <1000521162818.ZM25130@saguaro.lan> References: <3.0.6.32.20000519221113.007bb100@swlink.net> <00052102175300.01521@pvelasquez> <1000521162818.ZM25130@saguaro.lan> Message-ID: <00052201485200.00724@pvelasquez> Kevin: Thanks! I needed to install binutils as you mentioned. I finally was able to download the files/database I needed. I definetly will work on your other suggestion regarding SSH automatic login... -Pablo On Sun, 21 May 2000, you wrote: > On May 21, 2:04am, Pablo@zunigatech.com wrote: > > > error--------------------- > > [root@localhost IO-Tty-0.03]# make > > cc -c -Dbool=char -DHAS_BOOL -I/usr/local/include -O2 -DVERSION=\"0.03\" -DXS_VERSION=\"0.03\" -fpic -I/usr/lib/perl5/5.00503/i386-linux/CORE -DPTYRANGE0=\"abcdepqrstuvwxyz\" -DPTYRANGE1=\"0123456789abcdef\" -DPTYTEMPLATE=\"/dev/ptyXY\" Tty.cTty.xs: In function `xsignal': > > Tty.xs:352: warning: assignment from incompatible pointer type > > Tty.xs:357: warning: return from incompatible pointer type > > cc: installation problem, cannot exec `as': No such file or directory > > make: *** [Tty.o] Error 1 > > ------------------------------ > > > > I'm running RH 6.2. > > If the message is to be believed, it looks like you have an > installation problem. Make sure that /usr/bin is on your path. Then > make sure that /usr/bin/as exists and has appropriate execute > permissions set. You might create a simple "Hello, world" program (in > C) and attempt to compile it. The command "cc -v -o hello hello.c" > might yield some interesting and helpful messages. > > If you find that you're missing /usr/bin/as, it is likely that you'll > need to (re)install binutils-2.9.5.0.22-6. > > Also, please read my other post regarding ssh. There are ways to solve > your specific problem of supplying a password to ssh besides having the > script send a password to the ssh program. However, the technique of > using ptys to supply input to a program that expects to read from a > terminal is a useful one to learn, so you should attempt to solve your > installation problem as well. > > Kevin > > -- > Kevin Buettner > kev@primenet.com, kevinb@redhat.com -- From doug.miles at bpxinternet.com Tue May 23 13:19:19 2000 From: doug.miles at bpxinternet.com (Douglas E. Miles) Date: Thu Aug 5 00:16:10 2004 Subject: CANCELED: Phoenix.pm: Meeting 05/23/2000 References: <39205C47.8A74322A@bpxinternet.com> <39218FD9.573B92EC@bpxinternet.com> Message-ID: <392ACBA7.36F337CB@bpxinternet.com> Sorry, I've still been sick so there is no meeting tonight. We'll start up again next month. I'll announce the next meeting later. "Douglas E. Miles" wrote: > > Sorry, I'm out with the flu today. I'll have to reschedule the meeting > for next Tuesday. Sorry for the inconvenience. Repeat: No meeting > tonight! > > "Douglas E. Miles" wrote: > > > > Sorry that this is so late. Last week was one of those weeks. > > > > We'll be having a Phoenix.pm meeting Tuesday, May 16th at 7:00PM. > > It will be held at Bowne, which is located at 1500 N. Central Avenue, > > which is on the Southwest corner of Central and McDowell. The parking > > lot is gated, so just press the button on the intercom, and tell the > > receptionist that you are there for the Perl meeting. Park in the lot > > that is straight ahead from the entrance on the South side of McDowell. > > Park in any uncovered, non-reserved space. Proceed to the main lobby, > > which is on the Northeast side of the parking lot. > > > > I'll be presenting a simple indexing and search engine. Feedback is > > encouraged. > > > > -- > > For a list of the ways which technology has failed > > to improve our quality of life, press 3. > > -- > - Doug > > "A synonym is a word you use when you can't spell the > word you first thought of." > --Burt Bacharach -- - Doug "A synonym is a word you use when you can't spell the word you first thought of." --Burt Bacharach From Pablo at zunigatech.com Tue May 23 12:10:19 2000 From: Pablo at zunigatech.com (Pablo@zunigatech.com) Date: Thu Aug 5 00:16:10 2004 Subject: CANCELED: Phoenix.pm: Meeting 05/23/2000 In-Reply-To: <392ACBA7.36F337CB@bpxinternet.com> References: <39205C47.8A74322A@bpxinternet.com> <39218FD9.573B92EC@bpxinternet.com> <392ACBA7.36F337CB@bpxinternet.com> Message-ID: <00052310111000.00709@pvelasquez> Doug: I hope you feel better. -Pablo On Tue, 23 May 2000, you wrote: > Sorry, I've still been sick so there is no meeting tonight. We'll start > up again next month. I'll announce the next meeting later. > > "Douglas E. Miles" wrote: > > > > Sorry, I'm out with the flu today. I'll have to reschedule the meeting > > for next Tuesday. Sorry for the inconvenience. Repeat: No meeting > > tonight! > > > > "Douglas E. Miles" wrote: > > > > > > Sorry that this is so late. Last week was one of those weeks. > > > > > > We'll be having a Phoenix.pm meeting Tuesday, May 16th at 7:00PM. > > > It will be held at Bowne, which is located at 1500 N. Central Avenue, > > > which is on the Southwest corner of Central and McDowell. The parking > > > lot is gated, so just press the button on the intercom, and tell the > > > receptionist that you are there for the Perl meeting. Park in the lot > > > that is straight ahead from the entrance on the South side of McDowell. > > > Park in any uncovered, non-reserved space. Proceed to the main lobby, > > > which is on the Northeast side of the parking lot. > > > > > > I'll be presenting a simple indexing and search engine. Feedback is > > > encouraged. > > > > > > -- > > > For a list of the ways which technology has failed > > > to improve our quality of life, press 3. > > > > -- > > - Doug > > > > "A synonym is a word you use when you can't spell the > > word you first thought of." > > --Burt Bacharach > > -- > - Doug > > "A synonym is a word you use when you can't spell the > word you first thought of." > --Burt Bacharach -- From doug.miles at bpxinternet.com Fri May 26 16:06:50 2000 From: doug.miles at bpxinternet.com (Douglas E. Miles) Date: Thu Aug 5 00:16:10 2004 Subject: Phoenix.pm: Meeting 06/01/2000 Message-ID: <392EE76A.7E0DEEC2@bpxinternet.com> For real this time... We'll be having a Phoenix.pm meeting Thursday, June 1st at 7:00PM. It will be held at Bowne, which is located at 1500 N. Central Avenue, which is on the Southwest corner of Central and McDowell. The parking lot is gated, so just press the button on the intercom, and tell the receptionist that you are there for the Perl meeting. Park in the lot that is straight ahead from the entrance on the South side of McDowell. Park in any uncovered, non-reserved space. Proceed to the main lobby, which is on the Northeast side of the parking lot. I'll be presenting a simple indexing and search engine. Feedback is encouraged. -- For a list of the ways which technology has failed to improve our quality of life, press 3. From sinck at corp.quepasa.com Fri May 26 14:13:59 2000 From: sinck at corp.quepasa.com (sinck@corp.quepasa.com) Date: Thu Aug 5 00:16:10 2004 Subject: Phoenix.pm: Meeting 06/01/2000 References: <392EE76A.7E0DEEC2@bpxinternet.com> Message-ID: <14638.52471.200308.897099@charybdis.corp.quepasa.com> \_ I'll be presenting a simple indexing and search engine. \_ Feedback is encouraged. So the search engine searches itself? David From doug.miles at bpxinternet.com Fri May 26 16:48:41 2000 From: doug.miles at bpxinternet.com (Douglas E. Miles) Date: Thu Aug 5 00:16:10 2004 Subject: Phoenix.pm: Meeting 06/01/2000 References: <392EE76A.7E0DEEC2@bpxinternet.com> <14638.52471.200308.897099@charybdis.corp.quepasa.com> Message-ID: <392EF139.BD0CF9AF@bpxinternet.com> sinck@corp.quepasa.com wrote: > > \_ I'll be presenting a simple indexing and search engine. > > \_ Feedback is encouraged. > > So the search engine searches itself? > > David Only if you want it to. :) That should be an HTML indexer and search engine. :) -- - Doug "A synonym is a word you use when you can't spell the word you first thought of." --Burt Bacharach