- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- dot matrix printer formfeed
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
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
Community
Resources
Forums
Blogs
- 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
03-18-2004 12:01 PM
03-18-2004 12:01 PM
I've set up our dot matrix printer with HP Jetadmin using a 'dumbplot printer with CR' and everything prints out fine. The problem we have is that we need to send a form feed to the printer once the job has been completed.
I've contacted HP support and they've pointed me in the right direction. They said to modify the /var/spool/lp/interface/model.orig/printername file.
I've attached the printer file. Any help with modifying this file to add the formfeed to the end of the print job would be appreciated.
Thanks,
Cheng Ngan
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2004 12:30 PM
03-18-2004 12:30 PM
Re: dot matrix printer formfeed
try this:
while [ $i -le $copies ]
do
for file in $files
do
cat "$file" | sed 's/$/\
/' 2>&1
done
i=`expr $i + 1`
done
echo "\014"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2004 04:57 AM
03-19-2004 04:57 AM
Re: dot matrix printer formfeed
I tried this but it only sent an extra line feed at the end of the job and not a form feed.
Any ideas on what code I should add to send a form feed (or a Control-L)?
Cheng
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2004 05:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2004 05:15 AM
03-19-2004 05:15 AM
Re: dot matrix printer formfeed
echo "\014\c" but even better is:
echo "\f\c"; man echo for details.
This is what I would do:
TDIR=${TMPDIR:-/var/tmp}
T2=${TDIR}/P${$}_2.cmd
echo "\f\c" > ${T2}
...
...
for file in ${files}
do
cat "${file}" ${T2} 2>&1
done
....
....
rm -f ${T2}
Note that you could also create a "T1" file to do printer initialization and then
cat ${T1} "${file}" ${T2} 2>&1
to send both an initialization sequence and a termination sequence to the printer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2004 05:29 AM
03-19-2004 05:29 AM
Re: dot matrix printer formfeed
The dumbplot script is intended for pen-plotters. Try the dumb model script instead, it sends by default a formfed after each file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2004 09:01 AM
03-19-2004 09:01 AM
Re: dot matrix printer formfeed
Thanks everyone.