HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Printing to console
Operating System - HP-UX
1834939
Members
2151
Online
110071
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
Discussions
Forums
Discussions
back
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
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
05-24-2002 01:49 AM
05-24-2002 01:49 AM
Printing to console
How can I print to console (700/60) attached printer from shell script and cron job?
Thanks.
Arturas Pocius
Thanks.
Arturas Pocius
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2002 02:04 AM
05-24-2002 02:04 AM
Re: Printing to console
Hi,
if you want to print to the console just redirect your output to /dev/console. If you have a printer attached you should be able to redirect your output there. Something like:
echo "This is a test" > /dev/ttynn
Set the device according to the device your printer is connected to.
Hope this helps
Regards Stefan
if you want to print to the console just redirect your output to /dev/console. If you have a printer attached you should be able to redirect your output there. Something like:
echo "This is a test" > /dev/ttynn
Set the device according to the device your printer is connected to.
Hope this helps
Regards Stefan
No Mouse found. System halted. Press Mousebutton to continue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2002 02:36 AM
05-24-2002 02:36 AM
Re: Printing to console
I guess you like a transparent printing, so you can use the console while cron print to console printer...
Read the console guide and look for scape commands ...
In a ansi terminal ( your is configured as vt100 or hp) you must send the scape secuence
\E[5i to start sending to attached printer and \E[4i to stop it.
So if you send \E[5i this message goes to printer \E[4i to the terminal it will be write to the printer not to screen.
You must find this secuences for vt100 or hp. Dont know if CTRL-R and CTRL-T will work.
\E stands for scape ( 0x1b)
Read the console guide and look for scape commands ...
In a ansi terminal ( your is configured as vt100 or hp) you must send the scape secuence
\E[5i to start sending to attached printer and \E[4i to stop it.
So if you send \E[5i this message goes to printer \E[4i to the terminal it will be write to the printer not to screen.
You must find this secuences for vt100 or hp. Dont know if CTRL-R and CTRL-T will work.
\E stands for scape ( 0x1b)
unsupported
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 2025 Hewlett Packard Enterprise Development LP