- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- puzzle: print control character between DOS and HP...
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
07-18-2003 04:45 AM
07-18-2003 04:45 AM
Now I have to also make this file available to users in a public folder on an NT server. I wrote a script that renames a copy of the file to a '.txt' name, and ftp's it over to the NT box. (tried same with a rename to '.rtf')
The problem is that TOF crontrol-L.
When users on the NT side print the file, it doesn't recognize the ^L at all.
I've tried reverse-engeering - tried to insert a TOF in an NT .txt and/or .rtf file, but can't figure out anything that works.
Any ideas?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2003 04:50 AM
07-18-2003 04:50 AM
Re: puzzle: print control character between DOS and HP-UX
here is my idea:
- create a printer that spools to file, using the dumb printer.
- over that file, issue a
ux2dos
command, to convert LF/CR properly, and move the spooled file wherever you need.
So you have the output already formatted on two pages.
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2003 04:53 AM
07-18-2003 04:53 AM
Re: puzzle: print control character between DOS and HP-UX
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2003 04:56 AM
07-18-2003 04:56 AM
Re: puzzle: print control character between DOS and HP-UX
Before: ^L
After: ^L^M
The ^L is ignored when printing in DOS; it prints as a little white box character.
I'll try the other thing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2003 04:58 AM
07-18-2003 04:58 AM
Re: puzzle: print control character between DOS and HP-UX
Good luck!
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2003 05:21 AM
07-18-2003 05:21 AM
Re: puzzle: print control character between DOS and HP-UX
I guess my question should be:
How do you put a TOF in a .txt or .rtf file? Once I know that I'll ftp the file back to unix and look at the control sequence.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2003 05:38 AM
07-18-2003 05:38 AM
Re: puzzle: print control character between DOS and HP-UX
another shot:
cat yourUNIXfile | col -b | ux2dos > yourDOSfile
I'm looking at a way to insert the TOF in NT but till now i have not found anything...
Another thought: what kind of printer are you using on the NT side ?
I recall to use control chars in DOS mode (5.x, 6.x). May be it's the window driver that is working badly.
What about (in WINDOWS):
type yourDOSfile_wih_cnrlt_l > lpt1
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2003 05:56 AM
07-18-2003 05:56 AM
Re: puzzle: print control character between DOS and HP-UX
I'm running Windows ME on my PC. I ftp'd the file containing the ^L to my PC, renamed the file to end in .rtf, brought it up in Wordpad, and there was a pagebreak! Printed fine.
So I ftp'd the file from unix to the NT server. Renamed it to .rtf - while on the NT server I opened it in Wordpad and ... no good.
Then, back on my PC, opened it in Wordpad from across the shared folder ... and it's OK.
It figures this would be a Microsoft thing.
So, it's not reliable because it's the OS version or the version of Wordpad/Notepad or whatever text editor they happen to be using, that controls whether or not it works.
Well I can't control what they use, unfortunately....am I out of luck?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2003 07:46 AM
07-18-2003 07:46 AM
Re: puzzle: print control character between DOS and HP-UX
Hmmm wouldn't there be ^M's after every line. I don't think this helps much. Please confirm that it doesn't.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2003 07:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2003 08:00 AM
07-18-2003 08:00 AM
Re: puzzle: print control character between DOS and HP-UX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2003 08:08 AM
07-18-2003 08:08 AM
Re: puzzle: print control character between DOS and HP-UX
In the short term, I split the document into two documents, named them 'page 1' and 'page 2' ... yeah it's stupid but anyway.
Oh and yeah I tried both binary and ascii formats for the ftp. Same result.
Thanks folks,
Fred
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2003 08:11 AM
07-18-2003 08:11 AM
Re: puzzle: print control character between DOS and HP-UX
in this link how to create a pdf:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xfb2731ec5e34d711abdc0090277a778c,00.html
if not work.... i give up, it's friday, out the sun shines and i'm waiting to exit...
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2003 10:53 AM
07-19-2003 10:53 AM
Re: puzzle: print control character between DOS and HP-UX
So the problem is how to get all the 'friendly' features of WIndows out of the way so the plain text file can be sent to a printer without filtering. This was trivial in the days of 'real' DOS systems but as you probably know, DOS is no longer an underlying operating system but is now a quaint little program on the side. And to make it friendly to modern versions of Windows, the printing subsystem now gets involved. Unlike HP-UX where almost nothing is done to the print job, Windows processes every character through a giant print subsystem consisting of a meta-data processor (the program-to-spooler interface), then a printer driver where the meta-data is transformed into the best fit for the language of the printer.
Thus, it is quite difficult to control the behavior of a simple print file. What is needed is a 'raw' option in Windows which allows data to be sent as-is to the printer. Of course, a Postscript printer will just print error messages for a plain ASCII file.
Bill Hassell, sysadmin