From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <98640419713810.tru64-unix-managers.marc@archive.invalid> From: "Thomas, Douglas L." Date: Wed, 04 Apr 2001 17:07:43 +0000 To: tru64-unix-managers Subject: Remote Printers X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=98640419713810 Hi All, We have numerous HP LaserJet 4 Plus printers connected to our network via Lantronics Ethernet/Parallel devices. My /etc/printcap has entries for these printers like this: lp|lp0|0|humrs1|HUMRS1:\ :lf=/usr/adm/lperr/lp0:\ :lp=:\ :rm=10.1.3.47:\ :rp=HUMRS1:\ :sh:\ :sd=/usr/spool/lpd: HUMRS1 is the name of the Lantronics device. Most of the print jobs are generated by applications that format the data via their own drivers and Unix just dumps it to the printer. A Developer is now generating a test file and sending it to the printer via lpr. He now wants to print this in landscape mode. So, we tried "lpr -Phumrs1 -Olandscape filename", unsuccessfully (I assume because it's a remote printer. To solve this I created the following two files with the escape sequences to change the printer mode to landscape and back to portrait: File /tmp/hp_landscape contains: ^[&l2a10^[(s0p12h3T File /tmp/hp_portrait contains: ^[&l2a0O^[(s0p12h3T I then instructed the Developer to print via the following command: cat /tmp/hp_landscape his_file_name /tmp/hp_portrait | lpr -Phumrs1 This works, but I keep thinking that there must be a better way. Does anyone know of a more "proper" way to do this? VMS sets these up with some kind of "form" parameter and WinNT(grimace!) has its' wizards. The Sys Admin manual is a little thin on remote printers. This particular system is a 4100 running 4.0e, but I will probably have to make this work on 5.1, as well. My guess is that not much has changed between versions in this regard. Thanks In Advance, Douglas L. Thomas Network Support Specialist - Senior Unix Administrator Great Lakes Gas Transmission dthomas@glgt.com