printing a file from cron using cups and/or lpd
Stephen Ryan
stephen.p.ryan at dartmouth.edu
Wed Mar 24 12:56:01 EST 2004
On Wed, 2004-03-24 at 10:08, Greg Rundlett wrote:
> I use a short shell script [see bottom] that produces a nicely
> formatted GNU-style ChangeLog every day (using cvs2cl.pl and cron). I
> would like to add a print command to the script that cron invokes so
> that the new ChangeLog report is sitting at my printer when I arrive
> in the office.
>
> I seem to have a problem in my /etc/printcap file that is preventing
> lpd from running.
>
> My question is How do I edit my /etc/printcap file, or the
> /etc/cups/printers.conf file so that lpd can run successfully?
I don't think you actually want lpd here; in that case, you'd have two
print spoolers fighting over the actual hardware device, and I'm sure
you don't want that. Additionally, I think that /etc/printcap is
generated by cups and so any changes you make may be overwritten by
cupsd. I think what you want instead is to install a cups-compatible
lpr. The CUPS documentation claims one is included, but on Debian (at
least), it's in a separate package named cupsys-bsd.
--
Stephen Ryan
Digital Rights Management is bad for all of us:
http://www.bricklin.com/robfuture.htm
More information about the gnhlug-discuss
mailing list