- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- a2ps does not interpret ^M as carriage return
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
11-01-2002 12:35 PM
11-01-2002 12:35 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2002 12:51 PM
11-01-2002 12:51 PM
Re: a2ps does not interpret ^M as carriage return
In any event, what you can do is send the output through tr before piping to a2ps
e.g
tr -d "\015" < infile | a2ps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2002 06:40 AM
11-04-2002 06:40 AM
Re: a2ps does not interpret ^M as carriage return
+++++++++++++++++++++++++++++++++
^LPROPHECY DEBTORS TX COMM ON ENVIRONMENTAL QUAL PRINTED ON 02OCT02 10
:58AM PAGE 1
AGED ACCOUNT DETAILED REPORT DTLD AGED ACCTS RPT(ANAL3) AS AT OCT0
2,02 FOR 23/02
======================================================================================================================
==============
______ _____ _______ _______ _______
__ ____^MMASTER ALPHA ADDRESS ADDRESS ADDRES
S AD POST
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2002 07:34 AM
11-04-2002 07:34 AM
Re: a2ps does not interpret ^M as carriage return
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2002 08:04 AM
11-04-2002 08:04 AM
Re: a2ps does not interpret ^M as carriage return
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2002 08:52 AM
11-04-2002 08:52 AM
SolutionYou first print some text then issue a CR and then print underscore characters on the same line. This works fine on ASCII print jobs but a2ps simply outputs these as two separate strings. Cntl-M (dec 13 octal 15) is an ASCII CR. You are somehow expecting a2ps to understand this sequence and it doesn't have a clue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2002 10:25 AM
11-04-2002 10:25 AM
Re: a2ps does not interpret ^M as carriage return
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2002 10:33 AM
11-04-2002 10:33 AM
Re: a2ps does not interpret ^M as carriage return
Sandip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2002 10:54 AM
11-04-2002 10:54 AM
Re: a2ps does not interpret ^M as carriage return
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2002 11:09 AM
11-04-2002 11:09 AM
Re: a2ps does not interpret ^M as carriage return
Plan B. Most printer interface files have options to set page length. Add the appropriate -o argument to your lp command.
Plan C. Create an awk or Perl script to act as a filter for your input file. This is quite easy to do.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2002 11:13 AM
11-04-2002 11:13 AM