> From [EMAIL PROTECTED] Wed Jul 30 18:41:15 2003 > Date: Wed, 30 Jul 2003 17:05:48 -0700 > From: David Bear <[EMAIL PROTECTED]> > Subject: LPRng: filter error > To: [EMAIL PROTECTED] > > I must be missing something obvious. I've written a filter in python > and placed it in the proper location /usr/local/libexec/filters/. > > Then updated printcap accordingly. > > holdqueue|server queue \ > :tc=.srvr:server:rw \ > :lp=/tmp/holdqueue \ > :filter=/usr/local/libexec/filters/txt2pdf [EMAIL PROTECTED] > :oh=assurbanipal.pp.asu.edu > > Yet, when I print, I get > > lpq -lll -Pholdqueue > Printer: [EMAIL PROTECTED] 'server queue' > Queue: no printable jobs in queue > Server: no server active > Status: processing 'dfA940moroni.pp.asu.edu', size 857, format 'f', > IF filter 'txt2pdf' at 17:00:43.962 > Status: IF filter 'txt2pdf' filter msg - '/usr/local/bin/python: > can't open file '/usr/local/libexec/filters/txt2pdf'' at 17:00:43.971 > Status: IF filter 'txt2pdf' filter exit status 'JABORT' at > 17:00:43.972 > Status: printing finished at 17:00:43.972 > Status: accounting at end at 17:00:43.972 > Status: finished '[EMAIL PROTECTED]', status 'JABORT' at 17:00:43.972 > Status: job '[EMAIL PROTECTED]' error 'aborting operations' at > 17:00:43.974 > Status: job '[EMAIL PROTECTED]' saved at 17:00:43.975 > Rank Owner/ID Class Job Files Size > Time > error [EMAIL PROTECTED] A 940 ERROR: aborting operations > > Still, the txt2pdf has perms 751. Ive run checkpc and lpc reread. > > Any hints as to what is happening? > (yes, python does live in /usr/local/bin/python) > > -- > David Bear > phone: 480-965-8257 > fax: 480-965-9189 > College of Public Programs/ASU > Wilson Hall 232 > Tempe, AZ 85287-0803 > "Beware the IP portfolio, everyone will be suspect of trespassing"
The filter is running UID lpd GID lpd. Check the UID/GID on the /usr/local/libexec/filters file. You can do some debugging by having the filter send messages to STDOUT so you can see stuff such as the permissions on the executable. Fix: You need to make scripts executable AND readable... chmod -R a+rx /usr/local/libexec/filters ----------------------------------------------------------------------------- YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -----------------------------------------------------------------------------
