printing a file from cron using cups and/or lpd

Derek Martin invalid at pizzashack.org
Wed Mar 31 21:54:00 EST 2004


On Wed, Mar 31, 2004 at 08:57:50PM -0500, Greg Rundlett wrote:
> I just tested
>   lp ~/file.txt
> from the shell and it printed fine on my CUPS system at home, so I'm 
> guessing that it will work from cron (although my original problem was 
> on a different machine that I can't test right now).  

If it works from the command line, there's no reason it shouldn't also
work from cron...

> I didn't know 
> about the lp command (which is different from the "traditional" lpr). 

The "traditional" lp command is different from the "traditional" lpr
command... that's true.  They're from different "traditional" printing
systems.  The lpr command is from the BSD printing system (lpd), and
the lp command is from the SysV printing system (lpsched).  CUPS is
neither, but it supports both interfaces for the convenience of
compatibility with both major printing systems.

> In fact the man page for lp shows that it is from Easy Software 
> Products, the same people who make CUPS, so I guess it *is* the 
> command-line part of a CUPS system.

If you are using CUPS, you should also find that the same is true for
the lpr man page.  It provides both.  LPRng also provides both, so if
you are using that, you'll again find that both man pages are provided
by LPRng, instead of CUPS.  This is why things tend to break if you
try to install both LPRng and CUPS on the same machine, without
playing some games to accomodate that...

-- 
Derek D. Martin    http://www.pizzashack.org/   GPG Key ID: 0xDFBEAD02
-=-=-=-=-
This message is posted from an invalid address.  Replying to it will result in
undeliverable mail.  Sorry for the inconvenience.  Thank the spammers.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.gnhlug.org/mailman/private/gnhlug-discuss/attachments/20040331/66eb2a4a/attachment.bin


More information about the gnhlug-discuss mailing list