Hi,
I've written a python script that takes in incomming multipart mime
mail, scans it for attached files of a specific name, extracts said
files, performs some processing, inserts results into a database and
send a processing status mail to specific people.
It works fine from the command line but fails in my .procmailrc due to it
not being able to load the database's shared library.
SHELL=/bin/sh
LOGFILE=/home/jamest/.procmail-errors
<snip>
:0
* (^Subject:).*PIPETEST
|/home/jamest/dropbox
<snip>
My log file shows
Traceback (most recent call last):
File "/home/jamest/foundation-dropbox", line 3, in ?
import _pg
ImportError: ld.so.1: python: fatal: libpq.so: open failed: No such file
or directory
procmail: Error while writing to "/home/jamest/foundation-dropbox"
From jamest(_at_)math(_dot_)ksu(_dot_)edu Wed Mar 7 09:28:31 2001
Subject: PIPETESTJST
Folder: /var/mail/jamest 12233
Which implies my environment is not correct. However I'm not sure where
else I can set LD_LIBRARY_PATH to compensate for this. The lib is
available from my normal login acocunt. I've also created a .profile with
it in there (under my account). I've also added it to roots
LD_LIBRARY_PATH. Also attempted to add it to top of my .procmailrc.
None of these have solved my problem.
Any ideas on what I'm doing wrong?
Thanks
James
->->->->->->->->->->->->->->->->->->---<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<
James Thompson 138 Cardwell Hall Manhattan, Ks 66506 785-532-0561
Kansas State University Department of Mathematics
->->->->->->->->->->->->->->->->->->---<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail