- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Redirect serial output to file
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
Discussions
Discussions
Forums
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
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
тАО02-28-2008 10:55 AM
тАО02-28-2008 10:55 AM
Redirect serial output to file
Feel free to move this post if not in the appropriate category.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-28-2008 12:56 PM
тАО02-28-2008 12:56 PM
Re: Redirect serial output to file
You should probably create a new spooler pointing to a local serial port and then hack the interface script. There are two sections that you need to change, first the section that creates the header page, and second the section that prints the file at the bottom. Add output redirects to every echo, banner, date cat statement in that section.
What do you intend to do with the file output of your printouts? And would you go back and forth between printer and file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-28-2008 01:12 PM
тАО02-28-2008 01:12 PM
Re: Redirect serial output to file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-28-2008 01:56 PM
тАО02-28-2008 01:56 PM
Re: Redirect serial output to file
It may depend on exactly how the application
deals with the serial port. I gather that
you're not queuing print jobs, rather, the
app is opening some (Which?) serial port
device somehow (How?) and talking directly to
that serial port device (and hence the
printer itself).
If the app only sends data to the printer,
and doesn't try to read any data back from
the printer, then you might be able to do
something simple, like specify a file instead
of the serial port device name. Or, if the
port device name is fixed, rip out the actual
device, and replace it with a link to plain
file (somewhere outside of /dev).
As usual, everything's complicated, and with
no info on how the app does what it does,
it's hard to say how to make it do something
else.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-28-2008 05:45 PM
тАО02-28-2008 05:45 PM
Re: Redirect serial output to file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-29-2008 05:01 AM
тАО02-29-2008 05:01 AM
Re: Redirect serial output to file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-29-2008 05:19 AM
тАО02-29-2008 05:19 AM
Re: Redirect serial output to file
You could also use tusc to trace the system calls.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-29-2008 05:29 AM
тАО02-29-2008 05:29 AM
Re: Redirect serial output to file
In any case, have you just tried to "cat" the serial port and re-direct the output ?