GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Gettng printer to print in landscape
Operating System - HP-UX
1849763
Members
2606
Online
104044
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2009 05:14 AM
07-10-2009 05:14 AM
Gettng printer to print in landscape
I need an epson thermal printer to print in landscape mode. It is network printer useing the dumb_plot_2.0 model. I will paste the script here. I was wondering if anyone knows the sed command or another easy way of doing this to force it to print in landsape.
# Handle disable and cancel traps
trap "trap 15;kill -15 0;exit 0" 15
# The remaining arguments are files
shift; shift; shift; shift; shift
files="$*"
# Plot the spooled files
i=1
while [ $i -le $copies ]
do
for file in $files
do
cat "$file" | sed 's/$/\^M/' 2>&1
done
i=`expr $i + 1`
done
) >> /tmp/$$mpc1vchmp2
cp /tmp/$$mpc1vchmp2 $1
pr -w98 -l24 -tF $1
exit 0
# Handle disable and cancel traps
trap "trap 15;kill -15 0;exit 0" 15
# The remaining arguments are files
shift; shift; shift; shift; shift
files="$*"
# Plot the spooled files
i=1
while [ $i -le $copies ]
do
for file in $files
do
cat "$file" | sed 's/$/\^M/' 2>&1
done
i=`expr $i + 1`
done
) >> /tmp/$$mpc1vchmp2
cp /tmp/$$mpc1vchmp2 $1
pr -w98 -l24 -tF $1
exit 0
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2009 05:25 AM
07-10-2009 05:25 AM
Re: Gettng printer to print in landscape
Refer to your Epson Printer's programmers' manual. If you don't have such a thing, scour the internet or contact Epson. There has to be a code telling the printer to use landscape mode. This code needs to be inserted to the beginning of the print job. Your script can not change the printer's paper orientation as you are using a dumb printer model. What so called Epson ESCape codes (or what they were used to be called when Epson was the de-facto dot matrix printer manufacturer in its day) is your key to accomplish this.
________________________________
UNIX because I majored in cryptology...
UNIX because I majored in cryptology...
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2026 Hewlett Packard Enterprise Development LP