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 IamaSherpa 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
Oct 12, 1998
88
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
 
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