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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

copy a file to a remote print queue 1

Status
Not open for further replies.

butler

MIS
Joined
Oct 12, 1998
Messages
88
Location
US
Hi all,

I have a file containing native pcl 6.0 code that I would like to print from our AIX 4.3.3 box. Under PC DOS I can print this file using 'copy filename.pcl LPT1'. This copies the file to the 'captured' printer port.

I need to do same thing in unix. If just print the file with 'lp' or 'enq' I get jiberish. I want to copy the file directly to the device. The device is a remote print queue and shows up as @COMPUTERNAME when using lpstat. Any suggestions????

thanks,
bill
 
Have you tried cat file | lp -dprintername ?
 
Thanks for the response. The cat does not work because lp tries to to processing on the already processed file and messes things up. I did figure out the solution though:

To send a file to a printer without ANY preprocessing:

lp -dPRINTERNAME -o -dp filename.pcl

The '-o' option passes the '-dp' flag to 'piobe' (the back end print job manager). This causes the lp command to work in pass through mode.

I had forgoten that I had posted here. I should have posted my solution sooner.

Sorry,
bill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top