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

Jetadmin - landscape Printing

Status
Not open for further replies.

gonko

Technical User
Aug 12, 2002
45
GB
Hello,

we set printers up using jetadmin. The users print letters etc in portrait to eg. printer1. Some of them want to print landscape to printer1. Any ideas on what the best thing to do is?. Any files to edit etc?. Basic steps please

Regards

 
Where could I/ they use this ?. It is within Jetadmin and all the users do is select a printer. There is no option for them to do this
 
Sorry, don't know Jetadmin, but vouldn't you set up a copy of the portrait printer ad change it to print landsacpe by default, calling it something like <printer>_ls or whatever? Others who use Jetadmin will probably be along soon to debunk this!!
 
Cheers Ken, that's what I'm after. But need to know what exactly to do...regards.

I want room41 for portrait and
room41land for landscape
 
Forgot to mention, Forum697 deals specifically with HP printers if that helps. Good luck.
 
Another approach is to create an alias like "lpf" that will direct the printout through a filter. The filter will send the landscape command to the printer prior to sending a print data. If interested, I'll find the filter we use and post it here.
 
bfitzmai, that would be great

I think that is what I'm after

Regards
 
Gonko...
Took me a while to prove this works. I am attaching 2 scripts. The first script is the landscape filter for text file (non-postscript). The second script (what I call mylp) inputs the text file name. Example: mylp myfile.txt.

I hope is help.

************************************************************
landfilter:
#!/bin/csh -f
# Please do not remove the above line. Needed to run this script file
# as a c-shell script and not a bourne shell script if executed from
# a system call in c.
#
# This script is used to print to a laser printer.
#
#
(echo "^[&l1O^[(s13H^[&l5.0C^[&k7.0H"; cat $*;echo "^[E")

************************************************************
mylp:
#!/bin/csh -f
# Please do not remove the above line. Needed to run this script file
# as a c-shell script and not a bourne shell script if executed from
# a system call in c.
#
# This script is used to print to a laser printer.
#

set prt_cmd = "landfilter $1"

$prt_cmd | lpr -h

exit(0)
 
This is great. Excuse my solaris skills, but where are these scripts placed?
 
Have you user place them in their own bin directory. Make sure this directory is in the environment variable "PATH".
Also make sure these scripts are executables.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top