From bogus@does.not.exist.com Mon Aug 2 21:23:14 2004 From: bogus@does.not.exist.com () Date: Mon Aug 2 21:23:14 2004 Subject: No subject Message-ID: I can cover PHP. i've been using it for the last 18 months. I can give a good overview. Steve, you still up for it? David >That's about what I remember too: someone was working with PHP but I don't >remember who. > >At 10:36 AM 10/7/02 -0500, David Bluestein II wrote: >>Getting time for the monthly meeting. >> >>I think someone was going to talk on PHP and do a comparison w/Perl, but I >>don't remember if it was this month or next. Anyone know, Larry? Then I >>think we were going to do something with images (round 2) in November. >> >>David >> >>---------- >>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 > >------------------------------------------------------------------------ >Larry Hunter lhunter@lhunter.com http://lhunter.com/ > >_______________________________________________ >Austin mailing list >Austin@mail.pm.org >http://mail.pm.org/mailman/listinfo/austin ---------- 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 bogus@does.not.exist.com Mon Aug 2 21:23:14 2004 From: bogus@does.not.exist.com () Date: Mon Aug 2 21:23:15 2004 Subject: No subject Message-ID: Too late for "-T" option (X) The #! line (or local equivalent) in a Perl script contains the -T option, but Perl was not invoked with -T in its command line. This is an error because, by the time Perl discovers a -T in a script, it's too late to properly taint everything from the envi- ronment. So Perl gives up. If the Perl script is being executed as a command using the #! mechanism (or its local equivalent), this error can usually be fixed by editing the #! line so that the -T option is a part of Perl's first argument: e.g. change "perl -n -T" to "perl -T -n". If the Perl script is being executed as "perl scriptname", then the -T option must appear on the command line: "perl -T scriptname". HTH. P.S. To Wayne: Sorry. I promise never to forget to list-reply again. -- -Mick mick@lowdrag.org OpenPGP info is in the X-.* mail headers From bogus@does.not.exist.com Mon Aug 2 21:23:14 2004 From: bogus@does.not.exist.com () Date: Mon Aug 2 21:23:15 2004 Subject: No subject Message-ID: Too late for "-T" option (X) The #! line (or local equivalent) in a Perl script contains the -T option, but Perl was not invoked with -T in its command line. This is an error because, by the time Perl discovers a -T in a script, it's too late to properly taint everything from the envi- ronment. So Perl gives up. If the Perl script is being executed as a command using the #! mechanism (or its local equivalent), this error can usually be fixed by editing the #! line so that the -T option is a part of Perl's first argument: e.g. change "perl -n -T" to "perl -T -n". If the Perl script is being executed as "perl scriptname", then the -T option must appear on the command line: "perl -T scriptname". HTH. P.S. To Wayne: Sorry. I promise never to forget to list-reply again. -- -Mick mick@lowdrag.org OpenPGP info is in the X-.* mail headers From bogus@does.not.exist.com Mon Aug 2 21:23:14 2004 From: bogus@does.not.exist.com () Date: Mon Aug 2 21:23:18 2004 Subject: No subject Message-ID: How can I do an atexit() or setjmp()/longjmp()? (Exception handling) Release 5 of Perl added the END block, which can be used to simulate atexit(). Each package's END block is called when the program or thread ends (see perlmod manpage for more details). For example, you can use this to make sure your filter program managed to finish its output without filling up the disk: END { close(STDOUT) || die "stdout close failed: $!"; } The END block isn't called when untrapped signals kill the program, though, so if you use END blocks you should also use use sigtrap qw(die normal-signals); Perl's exception-handling mechanism is its eval() operator. You can use eval() as setjmp and die() as longjmp. For details of this, see the section on signals, especially the time-out handler for a blocking flock() in "Signals" in perlipc or the section on ``Signals'' in the Camel Book. If exception handling is all you're interested in, try the excep- tions.pl library (part of the standard perl distribution). If you want the atexit() syntax (and an rmexit() as well), try the AtExit module available from CPAN. Brian Michalk Life is what you make of it ... never wish you had done something. Aviator, experimental aircraft builder, motorcyclist, SCUBA diver musician, home-brewer, entrepreneur and mostly single > -----Original Message----- > From: austin-admin@mail.pm.org [mailto:austin-admin@mail.pm.org]On > Behalf Of Evan Harris > Sent: Monday, May 12, 2003 2:07 PM > To: Austin Perlmongers > Subject: APM: Using threads in perl > > > > I'm using a threaded copy of perl 5.8.0 to write a sendmail milter using > Sendmail::Milter from cpan. The milter interface creates a long-running > perl that spawns seperate threads to handle callbacks from the milter > interface. > > According to the docs, those threads are periodically recycled and > respawned. However, I've noticed that when that happens, the > threads don't > seem to release/close a global dbi handle I'm using from within the milter > callbacks, and is over time creating dozens of connections to the database > that never go away unless I restart the milter, and it eventually exhausts > the db connection pool. > > Does anyone know of something I can setup that is specific to perl threads > where I can register a function to be called immediately before a > thread is > destroyed? I would have that function explicitly close the db connection, > and hopefully that would solve my problem. > > Thanks. > > Evan > > _______________________________________________ > Austin mailing list > Austin@mail.pm.org > http://mail.pm.org/mailman/listinfo/austin > From dbii at interaction.net Wed Aug 4 12:19:25 2004 From: dbii at interaction.net (David Bluestein II) Date: Wed Aug 4 12:19:29 2004 Subject: APM: Aspect Oriented Programming 101 (JAVA) Message-ID: <20040804171925.GI3735@interaction.net> Since we discussed it a little at the last Perl Meeting, wanted to forward this from the Austin Java Users Group. Note this will probably be Java focussed, but will probably be at a more language independent fundamentals level (depends on how the speaker goes, I've seen both from this group). Just in case you missed it, this is from the **JAVA** users group. Tech Luncheon: AOP 101 Date: Thursday, August 5, 2004 Time: 11:30AM - 12:30PM CDT (GMT-05:00) Ernest Hill will present an introduction to Aspect Oriented Programming. He will explain the terminalogy and give an overview of some of the implementations and tools available today. The luncheon will be held at Pappasito's Cantina located at 6513 N I-35 ( 290 & I-35). David -- David H. Bluestein II President & Lead Developer dbii@interaction.net ii, inc. http://www.interaction.net -- Specializing in Designing Interactive Database Driven Websites -- From dbii at interaction.net Wed Aug 4 16:24:50 2004 From: dbii at interaction.net (David Bluestein II) Date: Wed Aug 4 16:24:52 2004 Subject: APM: Meeting Info Update Needed Message-ID: <20040804212450.GN3735@interaction.net> Hey, who was going to update the website with meeting information? I know someone said they were, but needed a password/access from Wayne. Also, any suggestions for meeting topics from the list? David -- David H. Bluestein II President & Lead Developer dbii@interaction.net ii, inc. http://www.interaction.net -- Specializing in Designing Interactive Database Driven Websites -- From austin.pm at sam-i-am.com Thu Aug 5 22:58:07 2004 From: austin.pm at sam-i-am.com (Sam Foster) Date: Thu Aug 5 22:58:19 2004 Subject: APM: Meeting Info Update Needed In-Reply-To: <20040804212450.GN3735@interaction.net> References: <20040804212450.GN3735@interaction.net> Message-ID: <411301CF.2050609@sam-i-am.com> David Bluestein II wrote: > Hey, who was going to update the website with meeting information? I know someone said they were, but needed a password/access from Wayne. > > Also, any suggestions for meeting topics from the list? > > David that would be me.. still here, no password yet. I couldn't make last months meeting to get it sorted out in person. If I can get back onto that server, I can make the updates. Sam From austin.pm at sam-i-am.com Thu Aug 5 23:35:50 2004 From: austin.pm at sam-i-am.com (Sam Foster) Date: Thu Aug 5 23:35:57 2004 Subject: APM: test hangs installing HTTP::Proxy (in win2k) Message-ID: <41130AA6.4060507@sam-i-am.com> I came across the very tantalizing HTTP::Recorder, which needs HTTP::Proxy (to do what I want it to do). I couldn't find a .ppd to install HTTP::Proxy via ppm, but installing via cpan was going well until it hung on one of the test: t\05new.............ok t\10init............ok t\15accessors.......ok t\17fstack..........ok t\20dummy........... it never timed out (or hasn't yet) - I have to kill it with ctrl+c. I took a quick look at my /.cpan/build/HTTP-Proxy-0.13/t/20dummy.t It looks like this is the first test that actually attempts to make a http request. I dunno. Does anyone have any experience with this? I'd dearly love to get this module installed. (what am I actually trying to achieve? The pod for HTTP::Recorder basically sums it up. I also want to have a generic proxy server that I can extend for e.g. logging and mirroring _my_ browsing sessions for testing and development purposes. I'll need SSL support and be able to handle basic authentication, redirects etc. ) thanks, Sam From jeremy at stuact.tamu.edu Fri Aug 6 10:27:54 2004 From: jeremy at stuact.tamu.edu (Fluhmann, Jeremy) Date: Fri Aug 6 10:27:56 2004 Subject: APM: Texas Perl Conference - what do you think Message-ID: <297203B1AD107A438D2616D3A8E9B38201DA45EC@DSAE2K.DSAD.AD.TAMU.EDU> Hello Everyone! I have wanted to be more involved in a Perl Monger group but have not been close enough to one to attend regularly. I have attended one of the Austin PM socials, but that is all. I've even considered trying to put together a group in my area. I wanted to try and attend OSCON this year, but wasn't able to (time, money, etc.). Here is the question that I pose to the three major groups: What do you guys think about having a Texas Perl Monger's Conference? I don't know if there is already one, or if there is something similar, but I would love to go to at least one 'major' Perl Monger Meeting. I see so many topics for meetings that I wish that I could attend, but distance and scheduling hinder my chances of attending. Here's a link to a poll: http://www.micro-mess.com/forum/viewtopic.php?t=97 Thanks, Jeremy Fluhmann Microcomputer Specialist Department of Student Activities Texas A&M University 979-458-4649 jeremy@stuact.tamu.edu This e-mail and any files transmitted with it are confidential. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the contents of this information is prohibited. If you have received this e-mail transmission in error, please notify me by telephone or via return e-mail and delete this e-mail from your system. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.pm.org/pipermail/austin/attachments/20040806/18f5752e/attachment.htm From austin.pm at sam-i-am.com Wed Aug 11 12:59:35 2004 From: austin.pm at sam-i-am.com (Sam Foster) Date: Wed Aug 11 12:59:49 2004 Subject: APM: Meeting Info Update Needed In-Reply-To: <20040804212450.GN3735@interaction.net> References: <20040804212450.GN3735@interaction.net> Message-ID: <411A5E87.3070503@sam-i-am.com> David Bluestein II wrote: > Hey, who was going to update the website with meeting information? I know someone said they were, but needed a password/access from Wayne. > > Also, any suggestions for meeting topics from the list? ok I'm once again poised to update the site. As I missed the last meeting, Do we have details on: where the meeting is to take place (ServerGraph?) time (7pm?, meet for dinner at pokejoes at?) topics? I'll try and get this done today if I can get this info. Sam From austin.pm at sam-i-am.com Wed Aug 11 14:42:41 2004 From: austin.pm at sam-i-am.com (Sam Foster) Date: Wed Aug 11 14:42:49 2004 Subject: APM: Apache mime-type handlers? Message-ID: <411A76B1.5040603@sam-i-am.com> hi there, A while back I found a way to set up a portion of my site so that *any* request for a text/html resource would be handled by a cgi-script I wrote. E.g. *.html as well as / requests, or any arbitrary extension I'd assigned the mime-type text/html would all get passed over to my /cgi-bin/htmlHandler.cgi Now, I'm looking back through the docs (for apache 1.3) and I don't see it. I see AddHandler which will let me assign file extensions, but nothing to assign handlers to mime-types. Any ideas? thanks Sam From dbii at interaction.net Thu Aug 12 08:44:30 2004 From: dbii at interaction.net (David Bluestein II) Date: Thu Aug 12 08:44:32 2004 Subject: APM: Call for Meeting Topic/Speaker Message-ID: <20040812134430.GE32643@interaction.net> Okay, haven't heard anything. Does anyone have anything interesting to present on? I've been working with SQL::Abstract and CGI::FormBuilder to try to build a framework so I could show some of that, but I don't have a full meetings worth on it. Maybe we can get 3-4 people to talk on something interesting like we did last month with Bill and Wayne. Anyone want to be a co-speaker? David >Hey, who was going to update the website with meeting information? I know >someone said they were, but needed a password/access from Wayne. > >Also, any suggestions for meeting topics from the list? ok I'm once again poised to update the site. As I missed the last meeting, Do we have details on: where the meeting is to take place (ServerGraph?) time (7pm?, meet for dinner at pokejoes at?) topics? I'll try and get this done today if I can get this info. Sam _______________________________________________ Austin mailing list Austin@mail.pm.org http://mail.pm.org/mailman/listinfo/austin ----- End forwarded message ----- -- David H. Bluestein II President & Lead Developer dbii@interaction.net ii, inc. http://www.interaction.net -- Specializing in Designing Interactive Database Driven Websites -- From itnomad at itnomad.net Thu Aug 12 15:28:39 2004 From: itnomad at itnomad.net (Jack Lupton) Date: Thu Aug 12 15:19:25 2004 Subject: APM: Call for Meeting Topic/Speaker In-Reply-To: <200408121700.i7CH0MAq012226@www.pm.org> References: <200408121700.i7CH0MAq012226@www.pm.org> Message-ID: <411BD2F7.5090004@itnomad.net> Does anyone have anything interesting to present on? I've been working with SQL::Abstract and CGI::FormBuilder to try to build a framework so I could show some of that. I would be very interested in this as I am currently working my way through the New Riders book MySQL and Perl for the Web. I am working on a particular application, and once I get it working, I am going to want to use it with a templating system. I have looked at Maypole(Apache::MVC), the Templating Toolkit, and a few others. My needs are fairly simple, and I am not going to be able to make changes to the Web servers config file, which leaves out Maypole, I think. I want to use Perl, so a mini language like the Templating Toolkit doesn't interest me much. Suggestions or presentations on Templating systems would be a really good thing. From austin.pm at sam-i-am.com Mon Aug 16 12:08:13 2004 From: austin.pm at sam-i-am.com (Sam Foster) Date: Mon Aug 16 12:08:29 2004 Subject: APM: Meeting Info Update Needed In-Reply-To: <20040816042525.GJ32643@interaction.net> References: <20040804212450.GN3735@interaction.net> <411A5E87.3070503@sam-i-am.com> <20040816042525.GJ32643@interaction.net> Message-ID: <4120E9FD.9090608@sam-i-am.com> I've updated the site for Wednesday's meeting. Let me know if I've misunderstood or misrepresented anything. I just added the meeting data/time/topic to the home page and the upcoming meetings page. Hopefully as I get the wrinkles out of this process, we can get these updates online sooner to give a little more notice to people considering attending - at minimum the date, time and location. I'd like to do a little maintenance/makeover to make the updates a little easier. Are there any people or precedents I should take into consideration? Is DeWayne Mangan on the list? Is the decision to keep the site all static html a deliberate one? Is there a wish list for what the site should do/say that it doesn't right now? I'm not proposing a major overhaul, but if there are issues I can fix while I'm in there I'd be happy to. thanks, Sam From dbii at interaction.net Mon Aug 16 12:18:56 2004 From: dbii at interaction.net (David Bluestein II) Date: Mon Aug 16 12:18:58 2004 Subject: APM: MEETING ANNOUNCEMENT: This Wednesday: Microsoft Exchange and Linux/Apache Message-ID: <20040816171856.GR32643@interaction.net> Wednesday, August 18th, 7:00 PM Jeremy is going to present on the work he has been doing on Perl modules related to Microsoft Exchange and Linux/Apache. He will talk about what modules he has written, what he had to do to write them, and the steps he is taking to put them up on CPAN. There will be a short discussion of future meeting topics. So if you can't be there and want to present, or want a presentation, email to the list so we can have your input in our discussion. Dinner for those interested at 5:30ish at Pok-e-Jo's on 5th street. Thanks to Wayne Walker at ServerGraph for providing meeting space (Ian, maybe we can do September at ARL if it is available?). Thanks to Sam for updating the web site with the new topic info. -- David H. Bluestein II President & Lead Developer dbii@interaction.net ii, inc. http://www.interaction.net -- Specializing in Designing Interactive Database Driven Websites -- From randysleek at hotmail.com Mon Aug 16 16:50:26 2004 From: randysleek at hotmail.com (Randall Hennig) Date: Mon Aug 16 16:50:30 2004 Subject: APM: Command line arguments Message-ID: Actually, $ARGV[0] is the first argument and $0 is the command name. You can use @ARGV and Getopt::Long::GetOptions together since GetOptions will just leave whatever it ignores in @ARGV >From: Jeremy Brooks >To: David Bluestein II >CC: Austin@mail.pm.org >Subject: Re: APM: Command line arguments >Date: 18 Feb 2004 09:14:56 -0600 > >All command line args are stored in @ARGV in the order you supply them. >Thus, bar.txt is the first element of @ARGV, $ARGV[0]. > >fyi: Getopts is a parser of @ARGV > >On Wed, 2004-02-18 at 08:51, David Bluestein II wrote: > > > ---------- > > > From: dbii@mudpuddle.com[SMTP:DBII@MUDPUDDLE.COM] > > > Sent: Wednesday, February 18, 2004 8:51:22 AM > > > To: Austin@mail.pm.org > > > Subject: APM: Command line arguments > > > Auto forwarded by a Rule > > > > > I know about Getopts to get command line options, but it has escaped me >how > > to get a command line argument. What I want is to: > > > > ./foo.pl bar.txt > > > > And have foo.pl get the name bar.txt as a variable (in this case the > > filename to act upon). Where is bar.txt stored? > > > > David > > > > ---------- > > David H. Bluestein II President & Lead Developer > > dbii@interaction.net 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 > >_______________________________________________ >Austin mailing list >Austin@mail.pm.org >http://mail.pm.org/mailman/listinfo/austin _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From dbii at interaction.net Thu Aug 19 08:36:54 2004 From: dbii at interaction.net (David Bluestein II) Date: Thu Aug 19 08:36:56 2004 Subject: APM: Meeting and new topics Message-ID: <20040819133654.GC32643@interaction.net> Last night's meeting, while small, had a very good presentation on Jeremy's work on interfacing with Exchange via Perl. He put a lot of work into his modules, so it will be nice when they are cleaned up and on CPAN. He is definitely a Perl/Exchange expert. Jeremy, thank you for the great talk! For next month, we will meet at ARL. If anyone wants to suggest a topic feel free. I have several we came up with last night, but if someone wants to present on something post to the list and we'll set it up. David -- David H. Bluestein II President & Lead Developer dbii@interaction.net ii, inc. http://www.interaction.net -- Specializing in Designing Interactive Database Driven Websites -- From austin.pm at sam-i-am.com Thu Aug 19 09:11:03 2004 From: austin.pm at sam-i-am.com (Sam Foster) Date: Thu Aug 19 09:11:21 2004 Subject: APM: Meeting and new topics In-Reply-To: <20040819133654.GC32643@interaction.net> References: <20040819133654.GC32643@interaction.net> Message-ID: <4124B4F7.5030303@sam-i-am.com> I'm sorry I couldn't be there, again (sicknesss seems to strike small children on 3rd wednesdays more often than probability should allow) I have updated the website so show next months meeting location. I'll fill in topics when we get them. Sam David Bluestein II wrote: > Last night's meeting, while small, had a very good presentation on Jeremy's work on interfacing with Exchange via Perl. He put a lot of work into his modules, so it will be nice when they are cleaned up and on CPAN. He is definitely a Perl/Exchange expert. > > Jeremy, thank you for the great talk! > > For next month, we will meet at ARL. If anyone wants to suggest a topic feel free. I have several we came up with last night, but if someone wants to present on something post to the list and we'll set it up. > > David > From jbrooks4 at austin.rr.com Thu Aug 19 16:21:40 2004 From: jbrooks4 at austin.rr.com (Jeremy Brooks) Date: Thu Aug 19 16:08:47 2004 Subject: APM: which ODBC do-dads? Message-ID: <1092950499.27259.6.camel@willow.mobile-o.com> Folks, I need to access a Microsoft SQL server from a Perl application running on a Linux machine. I have DBI installed and have been using it for quite sometime with the mysql driver. I've downloaded DBD-ODBC-1.09 and now I need to get a "driver manager" and a driver to access the Microsoft SQL database... hmmm. It looks like there are several option. Who here has experience enough to give me some suggestions on which "driver manager" and driver to use? -Jeremy From tpeoples at dmotorworks.com Thu Aug 19 16:19:37 2004 From: tpeoples at dmotorworks.com (Tim Peoples) Date: Thu Aug 19 16:19:49 2004 Subject: APM: which ODBC do-dads? In-Reply-To: <1092950499.27259.6.camel@willow.mobile-o.com> References: <1092950499.27259.6.camel@willow.mobile-o.com> Message-ID: <1092950377.8159.127.camel@tpeoples.dmotorworks.com> A former coworker suggests the following: http://www.freetds.org/ ...but, I've never used it personally. (I do vaguely remember that he had success with it, though) Tim. On Thu, 2004-08-19 at 16:21, Jeremy Brooks wrote: > Folks, > I need to access a Microsoft SQL server from a Perl application > running on a Linux machine. I have DBI installed and have been using it > for quite sometime with the mysql driver. I've downloaded DBD-ODBC-1.09 > and now I need to get a "driver manager" and a driver to access the > Microsoft SQL database... hmmm. It looks like there are several > option. Who here has experience enough to give me some suggestions on > which "driver manager" and driver to use? > > > -Jeremy > > _______________________________________________ > Austin mailing list > Austin@mail.pm.org > http://mail.pm.org/mailman/listinfo/austin -- _______________________________________________________________________ Timothy E. Peoples Core Technologies Group tpeoples@dmotorworks.com From jbrooks4 at austin.rr.com Thu Aug 19 21:24:08 2004 From: jbrooks4 at austin.rr.com (Jeremy Brooks) Date: Thu Aug 19 21:11:16 2004 Subject: APM: which ODBC do-dads? In-Reply-To: <20040819212328.7BF345BB@www.softwarejanitor.com> References: <20040819212328.7BF345BB@www.softwarejanitor.com> Message-ID: <1092968648.29462.4.camel@willow.mobile-o.com> I'm going to look into using unixodbc as the odbc manager and freetds as the driver. The site for iODBC was an immediate turn-off and didn't appear well organized. thanks to all, Jeremy On Thu, 2004-08-19 at 16:23, Leeland H wrote: > Re: APM: which ODBC do-dads? > Jeremy Brooks writes: > > I need to access a Microsoft SQL server from a Perl application > >running on a Linux machine. I have DBI installed and have been using it > >for quite sometime with the mysql driver. I've downloaded DBD-ODBC-1.09 > >and now I need to get a "driver manager" and a driver to access the > >Microsoft SQL database... hmmm. It looks like there are several > >option. Who here has experience enough to give me some suggestions on > >which "driver manager" and driver to use? > > I've used iODBC Driver Manager, you can find info about it here: > > http://www.openlinksw.com/iodbc/ > > The other major choice is unixODBC, which you can find here: > > http://www.unixodbc.org/ > > A further source for information, and another option is to use > DBD-Sybase and FreeTDS (TDS is the wire level protocol both Sybase > and MS-SQL Server use (MS-SQL Server was originally based on code > licensed from Sybase). > > http://www.freetds.org/ > > Hope that helps. > From wwalker at bybent.com Thu Aug 19 22:57:49 2004 From: wwalker at bybent.com (Wayne Walker) Date: Thu Aug 19 22:59:42 2004 Subject: APM: which ODBC do-dads? In-Reply-To: <1092950499.27259.6.camel@willow.mobile-o.com> References: <1092950499.27259.6.camel@willow.mobile-o.com> Message-ID: <20040820035749.GA15611@bybent.com> According to the version of SQL Server and how it's configured, you may be able to use the Sybase driver. SQL Server was developer from Sybase and they shared communication protocols until "lately". Even a very new SQL Server if "compatibility" is turned on will still speak the previous protocol which is the latest Sybase protocol. This is all third hand information, but I remember trusting whatever source that info came from. Of course, if you get ODBC running it's probably better (mainly compatibility and forward support) except for speed. On Thu, Aug 19, 2004 at 04:21:40PM -0500, Jeremy Brooks wrote: > Folks, > I need to access a Microsoft SQL server from a Perl application > running on a Linux machine. I have DBI installed and have been using it > for quite sometime with the mysql driver. I've downloaded DBD-ODBC-1.09 > and now I need to get a "driver manager" and a driver to access the > Microsoft SQL database... hmmm. It looks like there are several > option. Who here has experience enough to give me some suggestions on > which "driver manager" and driver to use? > > > -Jeremy > > _______________________________________________ > Austin mailing list > Austin@mail.pm.org > http://mail.pm.org/mailman/listinfo/austin -- Wayne Walker wwalker@bybent.com Do you use Linux?! http://www.bybent.com Get Counted! http://counter.li.org/ Perl - http://www.perl.org/ Perl User Groups - http://www.pm.org/ Jabber: wwalker@jabber.ntrc.net AIM: lwwalkerbybent IRC: wwalker on freenode.net From dbii at interaction.net Thu Aug 19 23:47:38 2004 From: dbii at interaction.net (David Bluestein II) Date: Thu Aug 19 23:48:46 2004 Subject: APM: which ODBC do-dads? In-Reply-To: <1092968648.29462.4.camel@willow.mobile-o.com> References: <20040819212328.7BF345BB@www.softwarejanitor.com> <1092968648.29462.4.camel@willow.mobile-o.com> Message-ID: <20040820044738.GQ32643@interaction.net> Jeremy- Having just gone through all of this on a strictly windows platform, DBI w/the ODBC module is the way to go. You'll just need to make sure DBD::ODBC has whatever it needs to function on Linux. You can also use something like DBI::Proxy to do the same thing, but I forget the specifics of how that is supposed to work. David On Thu, Aug 19, 2004 at 09:24:08PM -0500, Jeremy Brooks wrote: > I'm going to look into using unixodbc as the odbc manager and freetds as > the driver. The site for iODBC was an immediate turn-off and didn't > appear well organized. > > thanks to all, > Jeremy > > > On Thu, 2004-08-19 at 16:23, Leeland H wrote: > > Re: APM: which ODBC do-dads? > > Jeremy Brooks writes: > > > I need to access a Microsoft SQL server from a Perl application > > >running on a Linux machine. I have DBI installed and have been using it > > >for quite sometime with the mysql driver. I've downloaded DBD-ODBC-1.09 > > >and now I need to get a "driver manager" and a driver to access the > > >Microsoft SQL database... hmmm. It looks like there are several > > >option. Who here has experience enough to give me some suggestions on > > >which "driver manager" and driver to use? > > > > I've used iODBC Driver Manager, you can find info about it here: > > > > http://www.openlinksw.com/iodbc/ > > > > The other major choice is unixODBC, which you can find here: > > > > http://www.unixodbc.org/ > > > > A further source for information, and another option is to use > > DBD-Sybase and FreeTDS (TDS is the wire level protocol both Sybase > > and MS-SQL Server use (MS-SQL Server was originally based on code > > licensed from Sybase). > > > > http://www.freetds.org/ > > > > Hope that helps. > > > > _______________________________________________ > Austin mailing list > Austin@mail.pm.org > http://mail.pm.org/mailman/listinfo/austin -- David H. Bluestein II President & Lead Developer dbii@interaction.net ii, inc. http://www.interaction.net -- Specializing in Designing Interactive Database Driven Websites -- From jbrooks4 at austin.rr.com Fri Aug 20 09:08:14 2004 From: jbrooks4 at austin.rr.com (Jeremy Brooks) Date: Fri Aug 20 08:55:23 2004 Subject: APM: which ODBC do-dads? In-Reply-To: <20040820035749.GA15611@bybent.com> References: <1092950499.27259.6.camel@willow.mobile-o.com> <20040820035749.GA15611@bybent.com> Message-ID: <1093010894.5158.9.camel@willow.mobile-o.com> Thanks Wayne, I read the same thing and will probably end up going that route if ODBC continues to thwart my efforts. The application I'm working on is an API to a corporate product database, so using ODBC would be best I think. I had a minor catastrophe last night when I "installed" the Openlinksw.com Microsoft SQL driver. After the first setup question, things went a little nuts and the setup script produced several hundred empty files in my home directory with garbage names. It's screwed my xterm session up and nothing was readable during the "install process". I'm now in the process of backing stuff up before automating a clean up of my home directory.... #$^&!!!! I'll be calling Openlink today for a WTF session! -Jeremy On Thu, 2004-08-19 at 22:57, Wayne Walker wrote: > According to the version of SQL Server and how it's configured, you may > be able to use the Sybase driver. SQL Server was developer from Sybase > and they shared communication protocols until "lately". Even a very new > SQL Server if "compatibility" is turned on will still speak the previous > protocol which is the latest Sybase protocol. > > This is all third hand information, but I remember trusting whatever > source that info came from. > > Of course, if you get ODBC running it's probably better (mainly > compatibility and forward support) except for speed. > > On Thu, Aug 19, 2004 at 04:21:40PM -0500, Jeremy Brooks wrote: > > Folks, > > I need to access a Microsoft SQL server from a Perl application > > running on a Linux machine. I have DBI installed and have been using it > > for quite sometime with the mysql driver. I've downloaded DBD-ODBC-1.09 > > and now I need to get a "driver manager" and a driver to access the > > Microsoft SQL database... hmmm. It looks like there are several > > option. Who here has experience enough to give me some suggestions on > > which "driver manager" and driver to use? > > > > > > -Jeremy > > > > _______________________________________________ > > Austin mailing list > > Austin@mail.pm.org > > http://mail.pm.org/mailman/listinfo/austin From erik at debill.org Fri Aug 20 10:02:59 2004 From: erik at debill.org (erik@debill.org) Date: Fri Aug 20 10:03:13 2004 Subject: APM: which ODBC do-dads? In-Reply-To: <1092950499.27259.6.camel@willow.mobile-o.com> References: <1092950499.27259.6.camel@willow.mobile-o.com> Message-ID: <20040820150259.GA19757@debill.org> On Thu, Aug 19, 2004 at 04:21:40PM -0500, Jeremy Brooks wrote: > Folks, > I need to access a Microsoft SQL server from a Perl application > running on a Linux machine. I have DBI installed and have been using it > for quite sometime with the mysql driver. I've downloaded DBD-ODBC-1.09 > and now I need to get a "driver manager" and a driver to access the > Microsoft SQL database... hmmm. It looks like there are several > option. Who here has experience enough to give me some suggestions on > which "driver manager" and driver to use? We're using freetds and DBD::Sybase here at NCSoft. I just inherited it so I can't say why that was picked, but it looks to be working fine. Installation was pretty straightforward. Just add compiling and configuring freetds to the usual DBI/DBD setup. Freetds manages hostnames and ports, your connect string points to an entry in the freetds.conf file. 2 bits of weirdness: 1. We seem to need tds version set to 4.2. "If it's set to 7.0 that's a bug". Apparently it will work right for most things, but screw up if you're doing large chunks of text or binary data. I've not seen it, that's the folklore around here. 2. You don't specify a database name anywhere in the connection info. Threw me for a loop. It just connects to the default database for the user you log in as. After that I do a $dbh->do("use $databasename"); to get to the db I want. Erik -- Well I'm walking through the sand In the desert of my mind And I don't remember what it was That I came here to find -- Sister Machine Gun "Alone" From jbrooks4 at austin.rr.com Tue Aug 31 14:02:20 2004 From: jbrooks4 at austin.rr.com (Jeremy Brooks) Date: Tue Aug 31 13:48:49 2004 Subject: APM: Net::FTP recieves file but still reaches timeout without saving Message-ID: <1093978940.12780.23.camel@willow.mobile-o.com> good afternoon, I've written a simple test script (see inline) that connects, authenticates and gets a file from a Microsoft IIS 5.0 ftp server. In about 19 out of twenty executions the script timesout before actually getting the file. However, without fail, I see the number of bytes received over the passive mode data connection. The file's size is 5169 bytes. ----------------Netstat -an --inet-------------------- tcp 0 25 65.16.122.206:33723 207.200.10.26:21 ESTABLISHED tcp 5170 0 65.16.122.206:33724 207.200.10.26:1577 CLOSE_WAIT ------------------------------------------------------ I've traced the time out to Net::Cmd.pm line 269 where we use select to block on the handle used to read data from the server. I've enabled passive connections in Net::FTP using FTP_PASSIVE, pasv(), and Passive=>1. All these methods seem to work in that the passive data connection is established back the server but it's as if Net::FTP just doesn't do anything with it after the server sends the file. I've also tried rasing the timeout to 6 minutes which changed nothing but how long it took me to trouble shoot. When things work, the transfer takes on a couple of seconds so I set Timeout=>10. ncftp works 100% of the time from the same client machine to the same server. Have you any ideas on what's happening here and why it works occasionally? the script: ----------------------------------------------- #!/usr/bin/perl use Net::FTP; $ftp = Net::FTP->new("data.teledynamics.com",Hash=>\*STDOUT, Debug=>1,Passive=>1,Timeout=>10) or die "could not make handle\n"; $ftp->login("user","pass") or die "could not login\n"; $ftp->binary(); ### Here's where we hang $ftp->get("/images/ZES120.jpg") or die "could not get file\n"; $ftp->quit; print "OK ", $ftp->message,"\n"; --------------------------------------------------------------- thanks in advance! Jeremy Brooks