Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

lp Command 4.3.2 1

Status
Not open for further replies.

UCF87

Technical User
Feb 13, 2003
44
0
0
US
Is there a way to indicate printer and queue in any AIX print command? I have to specify the remote printer and a unique queue in the same command.

I need something like this:
lp -d{printer} -q{uniquequeue} /path/filename
 
Hi
I think there are no independent flags for both print queue/print device in the same command.
But The following syntax may serve your purpose.

$lp -dlp0:lpd /path/file
where lp0 is print queue and lpd is the print device.
Generally in most of the cases the printer name doesn't matter..print queue matters and can be the same...

simply one case use simplest syntax for printing as'
$lp -d <print_queue_name> /path/file

Also you can use general purpose utility(back end)such as:
$enq -P lp0:lpd /path/file .

sushveer
IBM certified specialist-p-series AIX5L System Administration
AIX/SOLARIS/WEBSPHERE-MQ/TIVOLI Administrator
 
try to set Environenment Variable LPDEST :

export LPDEST=<queue>

or you can use enq command and flag -P, which defines Queue and device (-P Queue:Device).


Okano
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top