340 reputation
310
bio website cutthechatter.com
location Waterdown, Canada
age 45
visits member for 5 years, 3 months
seen Jul 17 at 12:53

I am a software developer working for SAP in Waterloo, Ontario. I am a member of the SAP SQL Anywhere engineering team. I write primarily in C, C++, python, and perl.

In my spare time, I enjoy sports, primarily lacrosse, hockey, and baseball.

Blog: cutthechatter.com
Twitter:
GraemePerrow


Feb
7
comment Why does httpd seem to use a different version of python with the same executable?
But by the time my wsgi app is invoked, python is already running, and is using the wrong version.
Feb
7
comment Why does httpd seem to use a different version of python with the same executable?
OK, done. I did "LD_RUN_PATH=/usr/local/lib make" (clean) and "sudo make install". Doing an ldd on the resulting library (with LD_LIBRARY_PATH empty) shows "libpython2.7.so.1.0 => /usr/local/lib/libpython2.7.so.1.0 (0x00002b01f2199000)". But I still see the same result. (Note that in the comment above, I meant LD_LIBRARY_PATH, not LD_LIBRARY_THREAD).
Feb
7
comment Why does httpd seem to use a different version of python with the same executable?
The ldd output for mod_wsgi.so includes "libpython2.7.so.1.0". If I run it with LD_LIBRARY_THREAD unset, it says "=> not found". The only libpython* under /usr/lib is /usr/lib/python2.4/config/libpython2.4.a. No WSGIPythonHome is set.
Feb
7
comment Why does httpd seem to use a different version of python with the same executable?
@tfitzgerald Yes, I made sure of that. In fact I rebuilt it again (clean) just to make sure.
Feb
6
asked Why does httpd seem to use a different version of python with the same executable?
Jul
15
awarded  Notable Question
Jan
8
awarded  Popular Question
Nov
3
comment How can I forward email to a perl script on Linux?
@adamo: Good idea. When I do that, it still fails but this time the bounce email says "permission denied". The script and all the directories are all 0755. /usr/local/bin/perl is a link to /usr/bin/perl which is 0755 as well. I've tried setting the owner of the script to mail.mail, no change. If I run the script as user mail (su -m mail -c /etc/smrsh/handle_email.pl), it runs properly.
Nov
1
comment How can I forward email to a perl script on Linux?
Thanks, but nope. Tried changing permissions and restarting sendmail, same result.
Nov
1
revised How can I forward email to a perl script on Linux?
Typo
Nov
1
awarded  Editor
Nov
1
comment How can I forward email to a perl script on Linux?
@mdpc Thanks for your responses - I've updated the question with the answers.
Nov
1
revised How can I forward email to a perl script on Linux?
Answered questions from comments
Nov
1
asked How can I forward email to a perl script on Linux?
Mar
7
answered SQL AnyWhere, how do I set the database ReadOnly property to On?
Jan
10
comment Listing tables on a SQL Anywhere using iSQL
SQL Anywhere does not support this syntax.
Jan
10
answered Listing tables on a SQL Anywhere using iSQL
Aug
20
answered Sybase:-where to save a new database?
Dec
11
awarded  Quorum
Oct
27
awarded  Scholar