- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: top-of-form
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
04-16-2003 10:00 AM
04-16-2003 10:00 AM
top-of-form
If I then take that same text file and ftp it to an NT machine, then print it from NT, it shows a small block on the page but does not treat it as a TOF.
Same printer.
In ftp, binary mode trashes the file. In ascii mode I've tried the flat file, and also tried ux2dos on the file first, same result.
Any ideas? I need to get the TOF tranfered over from unix.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2003 10:03 AM
04-16-2003 10:03 AM
Re: top-of-form
Facetwin just passes the file from the unix queue to an NT queue for printing.
Anyway that process retains the TOF.
When I ftp the file over and print it using, say, notepad or wordpad, the TOF is lost.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2003 11:40 AM
04-16-2003 11:40 AM
Re: top-of-form
Did you try "copy /b filename PRN:" ? Or maybe even using print command if it still exists in Windows.
I kinda forgot the DOS stuff, perhaps it's PRN and not PRN:.
G.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2003 12:08 PM
04-16-2003 12:08 PM
Re: top-of-form
Here's the deal:
I have a unix script on a cron, which creates a nightly current email listing (the text file) based on current inboxes on the unix server.
The file in it's unix form is for sysadmins to use and print, from unix. General users do not have unix access.
But each night the same script also ftp's the text file over to an NT server, into a public folder.
Users on my network can just open the folder on their PC and browse or print the textfile with notepad or wordpad.
I set it up this way because it's self updating, PC users can get it when they want it, and is paperless if they want it to be.
Problem was, when they print it, the top-of-form behaves differently from notepad, as I described.
Was hoping there was an appropriate way to deal with the file from the unix side that would cause it to print properly on the NT side.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2003 12:17 PM
04-16-2003 12:17 PM
Re: top-of-form
You got me thinking now - maybe I should look at this the other way around.
Does anyone here know what you need to insert into a text file using notepad or wordpad, that causes a top-of-form or a page break?
If I knew that, I could have my unix script place the codes into the document prior to the ftp...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2003 12:19 PM
04-16-2003 12:19 PM
Re: top-of-form
If copy works then that is indeed the problem, and I don't see why copy would not work as I have always used it to transfer binary data directly to printer (i.e. to generate my own characters back then with my 9-pin Star printer).
G.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2003 12:33 PM
04-16-2003 12:33 PM
Re: top-of-form
This is a rather silly idea, but still.
Can you generate such a document in wordpad/notepad ? If you can do it, then try to print it to a file and check the contents of this file.
G.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2003 12:35 PM
04-16-2003 12:35 PM
Re: top-of-form
You can try the copy /b method, which may work in DOS. But... Be warned.. If you modify this file in windblows, your control sequence is deleted!
So, really this is a windows question ;) I have dealth with this as well as PJL commands that Windblows kindly strips from my prints. Hence I do all that I can from UNIX where I can control it.
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2003 06:25 AM
04-17-2003 06:25 AM
Re: top-of-form
In unix, my script creates a text file called "textfile" which contains ^L (dec 12) where I want page breaks to be.
Sending it to a printer in unix properly prints TOF.
Then, in the same script, I copy it to "textfile.rtf" and ftp the file over to a public folder on an NT file server.
PC users that open the file can use MS wordpad or MS Office to open the file. It also correctly prints the TOF.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2003 06:43 AM
04-17-2003 06:43 AM
Re: top-of-form
I found old versions of MS Wordpad.exe (NT 4 for example) that do not support page breaks.