OT: print a pdf from command line

Alan Mazuti amazu at trusteeservicesinc.com
Mon May 23 08:22:33 PDT 2005


Tried it out on my Redhat system and it works just fine.

-----Original Message-----
From: filepro-list-bounces at lists.celestial.com
[mailto:filepro-list-bounces at lists.celestial.com] On Behalf Of Dan Coutu
Sent: Monday, May 23, 2005 7:16 AM
To: Richard D. Williams
Cc: filepro-list at seaslug.org
Subject: Re: OT: print a pdf from command line

Richard D. Williams wrote:

> I would like to print a pdf file from the command line on a Red Hat box.
>
> Can anyone give me any suggestions?
>
> Thanks,
>
> Richard D. Williams

Richard, assuming that your printer is already configured and you want 
to print to the default printer
it is as easy as:

lpr mydocument.pdf

Where, of course, you specify your real filename instead of mydocument.pdf.

Note: the lp command is often interchangeable with the lpr command. 
That's just a bit of
funkiness from the BSD/System V split in UNIX oh so many years ago.

Dan




More information about the Filepro-list mailing list