From mpardo at velocitystorm.com Mon Nov 4 13:45:14 2002 From: mpardo at velocitystorm.com (Matt Pardo) Date: Mon Aug 2 21:23:15 2004 Subject: APM: Need project help: LWP Message-ID: <00a701c2843a$b3c22550$6e01a8c0@velocitystorm.com> Hi, I have a project coming up that involves using Perl and LWP. It is a short-term project that may turn into long-term. Out of the gate, they want some programs built that will interact with 3-4 different site's forms. These 3-4 sites are chosen from a list of 65 sites they want to eventually interact with. So, I think there is a potential for this to turn into a much larger project which may spawn other projects. Anyway, as it is now, it is a short-term project. So, if you are interested, please let me know: 1) That you are interested. 2) Your experience with Perl and LWP (or willingness to learn it) 3) Your availability....doesn't necessarily have to be done during the day, but I do know they want something within the next few weeks. So, nights/weekends are fine but not if you can't start for 4 weeks. 4) Your rate. I plan on doing a project write-up this week and then solicit bids from anyone who is interested. The person(s) selected will be selected based on a number of factors not just price. Thanks! If you have any questions, please let me know. Oh, no agencies or placement people please. Matt Pardo VelocityStorm High-velocity systems development www.velocitystorm.com 512-565-0802 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/austin/attachments/20021104/537cb908/attachment.htm From wwalker at bybent.com Sat Nov 9 22:46:27 2002 From: wwalker at bybent.com (wwalker@bybent.com) Date: Mon Aug 2 21:23:15 2004 Subject: APM: testing Message-ID: <200211100446.gAA4kHZ07047@mail.pm.org> ignore From mlehmann at marklehmann.com Wed Nov 13 19:46:30 2002 From: mlehmann at marklehmann.com (Mark Lehmann) Date: Mon Aug 2 21:23:15 2004 Subject: APM: Apache packages for checking in/out files Message-ID: <15827.118.907894.93635@lehmbrain.marklehmann.com> I'd like some suggestions on Perl packages to receive files and display icon's files that can be downloaded on a webserver. Are there some good off the shelf Perl packages that do this. Preferably one's that are easy to set up? -- Mark Lehmann email mlehmann@marklehmann.com | phone 512 689-7705 From dbii at mudpuddle.com Thu Nov 14 11:14:20 2002 From: dbii at mudpuddle.com (David Bluestein II) Date: Mon Aug 2 21:23:15 2004 Subject: APM: Updating the Website for Monthly Meeting? Message-ID: With the return to power of the formerly discredited Lehmann regime in a swift surprise takeover from the universally loved Larry, I am no longer sure who I should bug to get the website updated for November's meeting next week and to get a meeting announcement posted to the list as to what the topic is. Mark, Wayne, anyone? The Loyal Opposition :) ---------- David H. Bluestein II President & Lead Developer dbii@mudpuddle.com ii, inc. http://www.interaction.net - Specializing in Designing Interactive Websites - - and Searchable Internet Databases - From mlehmann at marklehmann.com Thu Nov 14 13:41:28 2002 From: mlehmann at marklehmann.com (Mark Lehmann) Date: Mon Aug 2 21:23:15 2004 Subject: APM: Poll: Pre-meeting dinner or post-meeting beverages? Message-ID: <15827.64616.413249.547403@lehmbrain.marklehmann.com> What is the preferred social and networking activity for the group? Dinner before the monthly meeting or beverages after the meeting. Right now, doing both we are getting a mediocre attendance to either. -- Mark Lehmann email mlehmann@marklehmann.com | phone 512 689-7705 From eharris at puremagic.com Thu Nov 14 13:53:47 2002 From: eharris at puremagic.com (Evan Harris) Date: Mon Aug 2 21:23:15 2004 Subject: APM: Poll: Pre-meeting dinner or post-meeting beverages? In-Reply-To: <15827.64616.413249.547403@lehmbrain.marklehmann.com> Message-ID: I doubt that eliminating one of them will do anything significant to boost the other. People have their own reasons for doing something before or after. Some people may need family time after, or don't get off work in time before. Eliminating the one that those people could make will just exclude them entirely. Evan -- | Evan Harris - Consultant, Harris Enterprises - eharris@puremagic.com | | Custom Solutions for your Software, Networking, and Telephony Needs On Thu, 14 Nov 2002, Mark Lehmann wrote: > > What is the preferred social and networking activity for the group? Dinner > before the monthly meeting or beverages after the meeting. > > Right now, doing both we are getting a mediocre attendance to either. > > -- > Mark Lehmann > email mlehmann@marklehmann.com | phone 512 689-7705 > _______________________________________________ > Austin mailing list > Austin@mail.pm.org > http://mail.pm.org/mailman/listinfo/austin > From wwalker at broadq.com Thu Nov 14 15:13:30 2002 From: wwalker at broadq.com (Wayne Walker) Date: Mon Aug 2 21:23:15 2004 Subject: APM: Updating the Website for Monthly Meeting? In-Reply-To: ; from dbii@mudpuddle.com on Thu, Nov 14, 2002 at 11:14:20AM -0600 References: Message-ID: <20021114151330.F17195@broadq.com> On Thu, Nov 14, 2002 at 11:14:20AM -0600, David Bluestein II wrote: > With the return to power of the formerly discredited Lehmann regime in a > swift surprise takeover from the universally loved Larry, I am no longer > sure who I should bug to get the website updated for November's meeting > next week and to get a meeting announcement posted to the list as to what > the topic is. > > Mark, Wayne, anyone? Mark got access late Tues or Wed night. THat is "Wayne passed the buck" > The Loyal Opposition :) > > ---------- > David H. Bluestein II President & Lead Developer > dbii@mudpuddle.com ii, inc. > > http://www.interaction.net > - Specializing in Designing Interactive Websites - > - and Searchable Internet Databases - > > > > > > _______________________________________________ > Austin mailing list > Austin@mail.pm.org > http://mail.pm.org/mailman/listinfo/austin -- Wayne Walker www.broadq.com :) Bringing digital video and audio to the living room And the "Wizard of Bill" says "Please ignore the crash behind the Windows." From mlehmann at marklehmann.com Fri Nov 15 09:28:39 2002 From: mlehmann at marklehmann.com (Mark Lehmann) Date: Mon Aug 2 21:23:15 2004 Subject: APM: Perl & XML session: 6:30pm Wednesday November 20th, 2002 Message-ID: <15829.4775.838246.783876@lehmbrain.marklehmann.com> When ==== The next APM meeting will be Wednesday November 20, 2002, 6:30pm at Tek Systems, see instructions below for new meeting room (new since November). Tek Systems is catering dinner. What ==== Perl & XML Mark Lehmann First part in a three part series on Web Services. This session is a refreshed on XML and how to process it in Perl using some of the standard Perl XML modules. This is the foundation for the next two sessions: SOAP (Simple Object Access Protocol) programming (February) Web Services Programming (March) Where ===== Tek Systems, on the North side of Austin and is conveniently located close to 183. See directions below. Drinking/Socializing ==================== BEFORE the meeting, several people will meet to network and socialize at Pok-e-Jo's in the Arboretum. AFTER the meeting, a small group will be going out to socialize. The group typically meets at B.B. Rover's, which serves food and drinks. BB Rover's Cafe & Pub 12636 Research Blvd. Austin, Texas 78759 Tel: (512) 335-9504 Directions to Tek Systems ========================= Going North on 183: - Take the Oak Knoll Exit. - If you are going South on 183 take the Duvall exit and take the U turn so that you are heading North. - Take your First right at Riata Trace Parkway (which is before the Oak Knoll light) - Take your second right at Riata Corporate Park. (You'll see a Netsolve sign) - IMMEDIATELY turn right again (the sign does not have our name on it) You will be facing our building and turn left into the parking lot. Walk into the double doors and we are the first door on the left-Suite 100. Meeting Location: 12331-1 Riata Trace Parkway, Suite ***200*** <- upstairs now Austin, TX 78727 512-257-6907 Here is the URL of a map of the meeting location: http://www.mapquest.com/maps/map.adp?email=1&mapdata=i8rr6UmMevNXOYzLGHJbGn0poWBZ3By9ByWKb4ZR2N%2bBV3d5vUVT7bdGpSQgz7pHgzyXbteEC9DsIzBvs8JnmRXQVLFK1MpVc0GyAay3gXopmqAaQUB7YLGCBp1fsSRDA91jTkVH6QMuASc7SNWOoyhUn6I7knZ5ONifI7qgSB9u1dG2cXtAk4i4XiYVuP7Fuvzrg6XjKX8L1rKkPtsUePMgzM6yvdWYRJsufh%2fKoD8zA6DgTdL%2bUegK5WWdjG2HeoH5%2fK%2b3OqNGuGGOQAbKx9xozGc2T7NleqXkLDvFcx4EJqcNl3E8Wmo3zDv7ci0uAFyzPg15GZPF9OB16Tb2TIa7u1cDjaUB4%2bcDys8QJTMAk%2fPcliZcoA%3d%3d From mlehmann at marklehmann.com Mon Nov 18 11:26:45 2002 From: mlehmann at marklehmann.com (Mark Lehmann) Date: Mon Aug 2 21:23:15 2004 Subject: APM: Perl & XML meeting this Wednesday 6:30pm at TekSystems Message-ID: <15833.8917.539397.292727@lehmbrain.marklehmann.com> What ==== We will be presenting Perl & XML Wednesday evening. This is the first of three presentations about programming Web Services. The outline for the presentation is: - XML Recap - XML Modules - Example use of XML - XML Resources - What's Next _Perl & XML_ by Erik T. Ray & Jason McInstoch is the background material for this presentation. While the XML in this presentation is implemented using Perl, the information is useful for other programming languages such as Ruby, Python, Java, and .NET. Dinner ====== A group will meet a Pok-e-Jo's Barbecue in the Arboretum at 5:30 for dinner and networking. Beverages and Networking ======================== At 8:00pm after the presentation, we will gather at B.B. Rover's for food, drink and more networking. Website ======= We've updated the website look and feel, thanks for website developer Dewayne Mangan. I'll be diligent about keeping it up to date. Reference the Austin Perl Mongers website at http://austin.pm.org for location details. Your Austin Perl Mongers group president, Mark Lehmann From mlehmann at marklehmann.com Mon Nov 18 12:34:44 2002 From: mlehmann at marklehmann.com (Mark Lehmann) Date: Mon Aug 2 21:23:15 2004 Subject: APM: Expanding Austin Perl Mongers Membership Message-ID: <15833.12996.336532.704083@lehmbrain.marklehmann.com> I've heard of some Perl based companies coming to town. If you know of a company, please let me know so that I can invite their employees to the Perl Mongers. The more people who attend, the more all of us learn, and the better opportunities we have to network with different companies and programming philosophies. -- Mark Lehmann email mlehmann@marklehmann.com | phone 512 689-7705 From michalk at awpi.com Wed Nov 20 09:10:56 2002 From: michalk at awpi.com (Brian Michalk) Date: Mon Aug 2 21:23:15 2004 Subject: APM: Perl IPC and select() In-Reply-To: <15833.12996.336532.704083@lehmbrain.marklehmann.com> Message-ID: When doing shared memory in Perl, one does not get an actual variable to a memory location because of Perl's garbage collection. Rather, one must call the msgrcv command (see perldoc perlipc) to see if a message has arrived. Now, being a lazy (and therefore excellent) programmer, I see something with rcv in it, and I want to place the handle in a select statement. However, the handle is not a file handle, it's a shared memory ID. I've got all of my classes interacting via handles (sockets and pipes), but I have a radar with an extremely high sample rate, and going through file IO is taking too much overhead. So, a select() would be nice. However, catching a signal is certainly doable and easy, it just kind of is not as pretty because now I have two signalling mechanisms. It's going to break my pretty symmetry. Another concern is that using signals in my modules is not going to be very robust (something about non-reentrant libraries). I suppose I could catch the signal, then place something on a file handle causing a select() to return a particular filehandle that would indicate valid data on a certain shared memory segment. Thoughts? From mitchelb at us.ibm.com Thu Nov 21 09:07:53 2002 From: mitchelb at us.ibm.com (Brian Mitchell) Date: Mon Aug 2 21:23:15 2004 Subject: APM: XML::Twig Message-ID: As promised here is the link to the XML::Twig perl module page: http://xmltwig.com/xmltwig/ http://xmltwig.com/xmltwig/tutorial/index.html I stumbled onto XML::Twig via a google search that pointed me to this article: http://www.xml.com/pub/a/2001/03/21/xmltwig.html Thanks again to Mark for the presentation. It definitely helped me gain a better understanding of XML. Brian Mitchell Team Lead TESM Platform Services IBM SWG GeT Ofc. 512-823-8242 Cell 512-844-2647 mitchelb@us.ibm.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/austin/attachments/20021121/7e289d3e/attachment.htm From mlehmann at marklehmann.com Thu Nov 21 11:30:13 2002 From: mlehmann at marklehmann.com (Mark Lehmann) Date: Mon Aug 2 21:23:15 2004 Subject: APM: Bug tracking tools Message-ID: <15837.6181.897698.922140@lehmbrain.marklehmann.com> I am looking for bug tracking tools for software projects. Sometime I can manage bugs in as well as allow customers to track the status of bugs. Preferrably an open source tool that is easy to install and learn. Any recommendations? -- Mark Lehmann email mlehmann@marklehmann.com | phone 512 689-7705 From majcher at majcher.com Thu Nov 21 11:35:58 2002 From: majcher at majcher.com (Marc Majcher) Date: Mon Aug 2 21:23:15 2004 Subject: APM: Bug tracking tools In-Reply-To: <15837.6181.897698.922140@lehmbrain.marklehmann.com> (message from Mark Lehmann on Thu, 21 Nov 2002 11:30:13 -0600) References: <15837.6181.897698.922140@lehmbrain.marklehmann.com> Message-ID: <200211211735.gALHZwQ21252@majcher.com> Mark Lehmann : : :I am looking for bug tracking tools for software projects. Sometime I can :manage bugs in as well as allow customers to track the status of bugs. : :Preferrably an open source tool that is easy to install and learn. : :Any recommendations? That's funny - at this very moment, I have this page open: http://www.fogcreek.com/FogBUGZ/ It's pretty good - Fog Creek produces a few solid pieces of software, and Joel writes some pretty interesting articles on the development process. It's not free as in beer, but it is cheap, and totally worth it. (Of course, I was there to steal features for my own perl-based bugbase, but that won't be ready to go for a while...) -- DVS "I love America, but I hate the government." - Rep. Jim Traficant (D-Ohio) From vaughan99 at yahoo.com Thu Nov 21 11:54:58 2002 From: vaughan99 at yahoo.com (Chris Vaughan) Date: Mon Aug 2 21:23:15 2004 Subject: APM: Bug tracking tools In-Reply-To: <15837.6181.897698.922140@lehmbrain.marklehmann.com> Message-ID: <20021121175458.20656.qmail@web11505.mail.yahoo.com> Also check out Bugzilla: http://www.bugzilla.org/ --- Mark Lehmann wrote: > > I am looking for bug tracking tools for software projects. > Sometime I can > manage bugs in as well as allow customers to track the status > of bugs. > > Preferrably an open source tool that is easy to install and > learn. > > Any recommendations? > > -- > Mark Lehmann > email mlehmann@marklehmann.com | phone 512 689-7705 > _______________________________________________ > Austin mailing list > Austin@mail.pm.org > http://mail.pm.org/mailman/listinfo/austin ===== ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Chris Vaughan | "I love deadlines. I like the | swooshing sound as they fly by." vaughan99@yahoo.com | - Douglas Adams __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus – Powerful. Affordable. Sign up now. http://mailplus.yahoo.com From erik at debill.org Thu Nov 21 12:03:57 2002 From: erik at debill.org (erik@debill.org) Date: Mon Aug 2 21:23:15 2004 Subject: APM: Bug tracking tools In-Reply-To: <15837.6181.897698.922140@lehmbrain.marklehmann.com> References: <15837.6181.897698.922140@lehmbrain.marklehmann.com> Message-ID: <20021121180357.GA17612@debill.org> On Thu, Nov 21, 2002 at 11:30:13AM -0600, Mark Lehmann wrote: > > I am looking for bug tracking tools for software projects. Sometime I can > manage bugs in as well as allow customers to track the status of bugs. > > Preferrably an open source tool that is easy to install and learn. > > Any recommendations? As someone else mentioned, bugzilla works well. Wasn't too hard to set up last time I gave it a whirl. The last two places I've worked we have used TestTrack Pro from www.seapine.com. Relatively low cost, runs on Linux, sings and dances. You can define fields that customers can't see, or make them read only. Great for keeping developer's comments from upsetting customers while still giving them a feel for what's going on (we used to let them set priorities as well). Lots of people love bugzilla, though. One of these days I won't be working late on meeting night. Erik From mlehmann at marklehmann.com Mon Nov 25 19:06:37 2002 From: mlehmann at marklehmann.com (Mark Lehmann) Date: Mon Aug 2 21:23:15 2004 Subject: APM: Meeting place for December 11th Meeting Message-ID: <15842.51485.900073.761271@lehmbrain.marklehmann.com> Where should we meet for the December 11th Meeting? Perhaps somewhere further south to please those who have to travel north for the regular meetings? -- Mark Lehmann email mlehmann@marklehmann.com | phone 512 689-7705 From hrunting at texas.net Mon Nov 25 19:44:00 2002 From: hrunting at texas.net (Philip Molter) Date: Mon Aug 2 21:23:15 2004 Subject: APM: Meeting place for December 11th Meeting In-Reply-To: <15842.51485.900073.761271@lehmbrain.marklehmann.com> Message-ID: On Mon, 25 Nov 2002, Mark Lehmann wrote: : Where should we meet for the December 11th Meeting? Perhaps somewhere : further south to please those who have to travel north for the regular : meetings? Hell, I haven't been to a meeting in almost two years because I don't need to travel Mopac during rush hour. A more Southern meeting point would definitely be like a Christmas gift to those of us who live vicariously through the mailing list. From majcher at majcher.com Mon Nov 25 19:47:39 2002 From: majcher at majcher.com (Marc Majcher) Date: Mon Aug 2 21:23:15 2004 Subject: APM: Meeting place for December 11th Meeting In-Reply-To: (message from Philip Molter on Mon, 25 Nov 2002 19:44:00 -0600 (CST)) References: Message-ID: <200211260147.gAQ1ld811562@majcher.com> Philip Molter : :On Mon, 25 Nov 2002, Mark Lehmann wrote: : :: Where should we meet for the December 11th Meeting? Perhaps somewhere :: further south to please those who have to travel north for the regular :: meetings? : :Hell, I haven't been to a meeting in almost two years because I don't :need to travel Mopac during rush hour. A more Southern meeting point :would definitely be like a Christmas gift to those of us who live :vicariously through the mailing list. I second that. There's at least three of us down here in south Austin that would be very appreciative if we didn't have to make that ugly meeting commute. Unfortunately, I'm new to the area, so, no location ideas from me. -- DVS "At least I maintain a positive attitude about my destructive habits." From itnomad at earthlink.net Tue Nov 26 07:38:22 2002 From: itnomad at earthlink.net (Jack Lupton) Date: Mon Aug 2 21:23:15 2004 Subject: APM: RE: Meeting place for December 11th Meeting In-Reply-To: <15842.51485.900073.761271@lehmbrain.marklehmann.com> Message-ID: I vote for Anderson Mill. The Mesa Rosa Restaurant would be a good place to meet afterwards. -----Original Message----- From: austin-admin@mail.pm.org [mailto:austin-admin@mail.pm.org]On Behalf Of Mark Lehmann Sent: Monday, November 25, 2002 7:07 PM To: Austin Perl Mongers Subject: APM: Meeting place for December 11th Meeting Where should we meet for the December 11th Meeting? Perhaps somewhere further south to please those who have to travel north for the regular meetings? -- Mark Lehmann email mlehmann@marklehmann.com | phone 512 689-7705 _______________________________________________ Austin mailing list Austin@mail.pm.org http://mail.pm.org/mailman/listinfo/austin From Goldilox at teachnet.edb.utexas.edu Wed Nov 27 00:45:30 2002 From: Goldilox at teachnet.edb.utexas.edu (Goldilox) Date: Mon Aug 2 21:23:15 2004 Subject: APM: Dereferencing question Message-ID: If I add a pair to a hash (or several pairs in my case) where the value is a reference to an array: my %hash; $key="thislist"; @values=qw(Item1 Item2 Item3); $hash{$key}=\@values; how do I dereference @values? foreach $key(keys %hash){ print "\$key=$key\n"; print "\@values=??\n"; } I need to associate a list for each key. I am unaccustomed to using references so feel free to set me straight :0) Rhett From renm at iname.com Wed Nov 27 07:22:06 2002 From: renm at iname.com (Ren Maddox) Date: Mon Aug 2 21:23:15 2004 Subject: APM: Dereferencing question Message-ID: <1038403229.2636.13.camel@kraz.dynamic.austin.ibm.com> On Wed, 2002-11-27 at 00:45, Goldilox wrote: > If I add a pair to a hash (or several pairs in my case) where the value is a > reference to an array: > my %hash; > $key="thislist"; > @values=qw(Item1 Item2 Item3); > $hash{$key}=\@values; Warning: this construct assigns a reference to the *same* @values for each key, if this code is executed more than once -- in a loop, for example. Making @values a lexical (my) within the loop is one way to avoid that problem. (The manifestation of the problem is that all of the hash values will be the same array reference, and the array will only have the most recently assigned values.) > how do I dereference @values? > > foreach $key(keys %hash){ > print "\$key=$key\n"; > print "\@values=??\n"; > } You want: print "\@values=@{$hash{$key}}\n" Though you may find a better construct for this is: while ( my($key, $value) = each %hash ) { print "\$key = $key\n"; print "\@values = @$value\n"; } > I need to associate a list for each key. I am unaccustomed to using references > so feel free to set me straight :0) Have a(nother?) read through perlreftut(1) -- it does a good job of explaining most of what is needed to use references. -- Ren Maddox -- Ren Maddox From renm at iname.com Wed Nov 27 07:22:07 2002 From: renm at iname.com (Ren Maddox) Date: Mon Aug 2 21:23:15 2004 Subject: APM: Dereferencing question Message-ID: <1038403326.2636.16.camel@kraz.dynamic.austin.ibm.com> On Wed, 2002-11-27 at 00:45, Goldilox wrote: > If I add a pair to a hash (or several pairs in my case) where the value is a > reference to an array: > my %hash; > $key="thislist"; > @values=qw(Item1 Item2 Item3); > $hash{$key}=\@values; Warning: this construct assigns a reference to the *same* @values for each key, if this code is executed more than once -- in a loop, for example. Making @values a lexical (my) within the loop is one way to avoid that problem. (The manifestation of the problem is that all of the hash values will be the same array reference, and the array will only have the most recently assigned values.) > how do I dereference @values? > > foreach $key(keys %hash){ > print "\$key=$key\n"; > print "\@values=??\n"; > } You want: print "\@values=@{$hash{$key}}\n" Though you may find a better construct for this is: while ( my($key, $value) = each %hash ) { print "\$key = $key\n"; print "\@values = @$value\n"; } > I need to associate a list for each key. I am unaccustomed to using references > so feel free to set me straight :0) Have a(nother?) read through perlreftut(1) -- it does a good job of explaining most of what is needed to use references. -- Ren Maddox -- Ren Maddox From michalk at awpi.com Wed Nov 27 14:13:09 2002 From: michalk at awpi.com (Brian Michalk) Date: Mon Aug 2 21:23:15 2004 Subject: APM: Perl and C Semaphores In-Reply-To: <1038403229.2636.13.camel@kraz.dynamic.austin.ibm.com> Message-ID: I posted this to comp.lang.perl Maybe someone here has a suggestion? From: michalk@awpi.com (Brian K. Michalk) Newsgroups: comp.lang.perl Subject: Semaphore from Perl, used in C (semget problems) NNTP-Posting-Host: 66.134.114.52 Message-ID: I have a subroutine in a perl module: 543 ################################################################ 544 sub new_semaphore() { 545 my $self = shift; if($self->sd(@_)) {return undef;} 546 547 if (@_) { 548 my $s = new IPC::Semaphore(IPC_PRIVATE, 1, S_IRWXU | S_IRWXG | S_IROTH | IPC_CREAT); 549 $self->{semaphore} = $s; 550 } 551 if (defined $self->{semaphore}) { 552 return $self->{semaphore}->id(); 553 } 554 } 555 ################################################################ That is called from the perl code: 45 my $sid = $gpr->new_semaphore(1); 46 $gpr->set_executable($ARGV[0]." -m $id -s $sid -q"); Where ARGV[0] is the name of the C program to run, and the semaphore id is passed via "-s" on the command line. My C program looks like this: ... declarations ... 61 key_t sem_key = 0; // semaphore key ... down in the main program ... 188 main(int argc, char *argv[]) 189 { ...snip... 194 union semun { 195 int val; /* value for SETVAL */ 196 struct semid_ds *buf; /* buffer for IPC_STAT, IPC_SET */ 197 unsigned short int *array; /* array for GETALL, SETALL */ 198 struct seminfo *__buf; /* buffer for IPC_INFO */ 199 } arg; ...process arguments... 215 while ((argc > 1) && (argv[1][0] == '-')) { 216 switch (argv[1][1]) { ...snip... 235 case 's': 236 argv++; 237 --argc; 238 printf("processing S\n"); 239 instring = argv[1]; // memory ID 240 sem_key = atoi(instring); 241 printf("sem_key: %d \n", sem_key); 242 break; 243 } 244 argv++; 245 --argc; 246 } ... finally to the semget... 253 #define PERM S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH 254 sem_id = semget(sem_key, , PERM ); 256 if (sem_id = -1) perror("semget failed--"); When I run the whole mess, I get the following: semget failed--: No such file or directory which is the message for ENOENT which according to the semget(2) manpage: "No semaphore set exists for key and semflg wasn't asserting IPC_CREAT." I am at a loss. I've tried many permutations, and trying to attach to a semaphore listed by ipcs doesn't work either. I've even gotten a semget() = -1 result with errno set to success, whatever that means. From michalk at awpi.com Wed Nov 27 16:20:36 2002 From: michalk at awpi.com (Brian Michalk) Date: Mon Aug 2 21:23:15 2004 Subject: APM: More on Semaphores In-Reply-To: Message-ID: Does the following work for anyone? use IPC::SysV qw(IPC_PRIVATE IPC_CREAT IPC_STAT GETVAL ); my $nid1 = semget(IPC_PRIVATE, 1, IPC_CREAT | 0666); # this returns an ID for me my $nid2 = semget($nid1, 1, 0666); # this one returns -1, but should have returned another handle to the semaphore. Maybe I'm missing something basic about how to use semaphores.