As a matter of policy,  I suggest that you do NOT put your
executables (or links to them) in the spool directory,  but
instead reference them directly in the printcap.

This actually removes one level of indirection and will make your
life MUCH more pleasant when trying to find problems.

Other than less pain, agony, and cursing as you try to find
out where the real executable is,  there is not much reason not
to put the links there... except being the nasty person I am,
I wrote checkpc to enforce my facist notions of security...

Sigh... 

You might also like to look at:

So you can simply do:
 ps|zytops:\
          :lp=/dev/lp0:sd=/var/spool/lpd/%P:\
          :filter=/usr/local/libexec/filters/psif:\
          :lf=log:\
          :sh:mx=0:

Note that this will make sure that if you move / rename the spool
queue that it will get created with a unique name.

Patrick ("Thanks") Powell

Your original email ended up in my Spam Collection Sack, and this
is not the best place for it.  This could be due to that fact
that you sent it directly to me, or you sent it to the LPRng mailing
list and you were not subscribed to it.  Or you might be trying to
beat the list security and were sending to lprng-owner and expecting
to spam the list :-)

If you are subscribed to the mailing list,  then you might have
sent it from a site or address different than the one that you
registered with.  If the latter is the case and you want to post
from this address then send me, Patrick Powell <[EMAIL PROTECTED]>,
email describing the problem with:

LPRNGMAIL

in the SUBJECT line so my junk mail purging system will not toss
it into the bit shredder (we shred our email for security reasons).

In fact,  if you have any problems with the list, send me email
with LPRNGMAIL in the header.

The best way to get answers is via the LPRng mailing list, which
I peruse on a fairly frequent basis.

To subscribe, send mail to:

[EMAIL PROTECTED]

with the single line:

subscribe 

in the body.

This reply is sent by a semiautomatic system, and the real
person may be drinking coffee at the present time...
so my apologies for the one-size-fits-all message.

Patrick Powell                 Astart Technologies,
[EMAIL PROTECTED]            9475 Chesapeake Drive, Suite D,
Network and System             San Diego, CA 92123
  Consulting                   858-874-6543 FAX 858-279-8424 
LPRng - Print Spooler (http://www.lprng.com)


>

> From [EMAIL PROTECTED] Mon Dec 10 04:26:57 2001
> From: [EMAIL PROTECTED] (Eckhard =?iso-8859-1?q?R=FCggeberg?=)
> To: <[EMAIL PROTECTED]>
> Subject: checkpc(8) bug
> Date: Mon, 10 Dec 2001 14:27:47 +0100
>
> Hi,
>
>   I found your name in the checkpc(8) man page, so I dare to send you a 
> bug (?) report of that program.
>
> I have (for several years now) a printcap entry 
>
> # PostScript Printer Zyto (Canon BJ 240)
> ps|zytops:\
>          :lp=/dev/lp0:sd=/var/spool/lp-zytops:\
>          :if=/var/spool/lp-zytops/psif:lf=/var/spool/lp-zytops/pslf:\
>          :sh:mx=0:
>
> What the input filter does is irrelevant, the problem is that I am used to 
> having everything together in the printer's spool directory. But now I 
> installed SuSE 7.3 on the server, which uses LPRng as default printing 
> system. And their /etc/init.d/lpd  calls "checkpc -af" first, which doesn't 
> behave well in this situation: 
>
> zyto:/var/spool # checkpc -f
> Warning - permissions of 'psif' are 0700, not 0600
> Warning - 'if' filter '/var/spool/lp-zytops/psif' does not have execute perms
>
> Firstly, it complains about /var/spool/lp-zytops/psif having the "wrong" 
> permissions, fixes this "problem" and then complains about the input filter 
> not being executable, but does _not_ fix this problem. Result: Before calling
> checkpc I could print, after calling it I can't. 
>
> The intention of checkpc is other way round: If I cannot print for some 
> reason or the other, I should be able to after invoking checkps -f
>
> The solution for me is to remove the spurious call of checkps in 
> /etc/init.d/lpd ....
>
> Eckhard R�ggeberg
> [EMAIL PROTECTED]
>
> - Who is General Failure, and why is he reading my disk ??
>
>

-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------

Reply via email to