Real smart question


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Real smart question
# 1  
Old 07-20-2005
Bug Real smart question

hello

My question is whats the difference between LP and LPR to print Sun Solaris ?

lp -dprintername postscriptfile.ps

or

lpr -Pprintname postscriptfile.ps
# 2  
Old 07-20-2005
lp send requests to a local printer from a Solaris host.

For SunOS it's lpr.

Obviously they're both present on current OS, but it's good practise to use the correct one incase you end up using an older version of Solaris.
# 3  
Old 07-25-2005
lpr is the off-line printer... lp is just a frontend to the lpr. (that is in FreeBSD, maybe is the same in Sun Solaris), out put from man lp(1):


LP(1) FreeBSD General Commands Manual LP(1)

NAME
lp
-- front-end to the print spooler

SYNOPSIS
lp
[ -cs ] [ -o option ] [ -d printer ] [ -n num ] [ name ... ]

DESCRIPTION
The lp utility is a front-end to the print spooler as required by the
IEEE Std 1003.2 (``POSIX.2'') specification. It effectively invokes
lpr(1) with the proper set of arguments.
Login or Register to Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Explain the difference between the commands cd ~smart and cd ~/smart

Is it possible for both commands to work? (1 Reply)
Discussion started by: phunkypants
1 Replies

2. Shell Programming and Scripting

smart script?

First, I know that's a bad title. I couldn't think of anything short enough. ... I wrote the following script to let me know when various parts of the network are down. It used to look like this before last weekend when I got over 500 emails about 1 host being down all weekend: this is in the... (1 Reply)
Discussion started by: raidzero
1 Replies

3. UNIX for Advanced & Expert Users

smart question

eg. : there is a file - 322 bytes, how can I (or you) view just a half of file (161 bytes)? (3 Replies)
Discussion started by: zylwyz
3 Replies
Login or Register to Ask a Question