- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- from UNIX to DOS, still can't make it work, end-o...
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
08-05-2003 06:17 AM
08-05-2003 06:17 AM
This a follow up for the post above, I still can???t get it worked with original file, the test file being created with VI works fine, so I think that my file is carrying something special chars, this file made multiple hops before being FTP (get) to UNIX, and originally was created on Stratus.
But fact is that I can see this file clearly on UNIX (end-of-line is OK) but can???t do in Windows after FTP or email it as a attachment after FTP with bin, ascii, and using ux2dos. Lines are broken, and I think more important some lines are multiplied !!!!! (see sample on link).
That what I tried (all combinations, run from script):
ftp (bin/ascii/..) get ???file???
ux2dos file > filed
ftp (bin/ascii/???) put file/filed or email as attachment [include plain/text filed]???.
I???m thinking to reformat my file explicitly deleting special chars, taking first 45 bytes (its length) and putting end-of-line for windows < \r\n > at the end. I think it can be done with awk/sed ? Also how I can see contents of my file in UNIX in bin ? Is there any special mode for VI ?
Thanks
Nikola
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2003 06:22 AM
08-05-2003 06:22 AM
Re: from UNIX to DOS, still can't make it work, end-of-line
Could something similar be occuring with your file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2003 06:25 AM
08-05-2003 06:25 AM
Re: from UNIX to DOS, still can't make it work, end-of-line
You can use printf or awk to print the contents of the file in hex. You'll probably see something interesting in there.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2003 06:27 AM
08-05-2003 06:27 AM
Re: from UNIX to DOS, still can't make it work, end-of-line
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2003 06:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2003 06:34 AM
08-05-2003 06:34 AM
Re: from UNIX to DOS, still can't make it work, end-of-line
od -Ad -ta myfile
and on your Windows box:
debug myfile
enter 'd' a few times and then 'q'.
This will display any control characters in printable form and if you post those results, someone should be able to craft a filter for you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2003 06:53 AM
08-05-2003 06:53 AM
Re: from UNIX to DOS, still can't make it work, end-of-line
you said you created this file with stratus.
I do not know what is it, but are you sure that it is written in ascii ?
Have you the chance to save the file in another format, and then take the file to the window server ?
There are a lot of good hex editor for unix, free download at:
http://hpux.connect.org.uk/hppd/hpux/Development/Tools/hexedit-0.9.7/
or ultraedit32 for the window server.
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2003 07:07 AM
08-05-2003 07:07 AM
Re: from UNIX to DOS, still can't make it work, end-of-line
I attached output for hex display and it's all nice, and this time it also worked fine if I do:
FTP __ GET FILE (no bin/ascii)
UX2DOS FILE > FILED
FTP __ FILED
so I will start all over, checking every setting. Will keep all posted. Thanks to all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2003 08:54 AM
08-05-2003 08:54 AM
Re: from UNIX to DOS, still can't make it work, end-of-line
could you be more specific about what use ?
UNIX / WINDOWS / gzip / WINZIP
...could be anything. I searched google for "winzip gzip incompatible" and you get some stuff there. I.e. if cygwin-zip is involved this might be a problem. If winzip is no quite current in its version, it might not be able to handle a plain .gz file but will require a tared-gzip (even if there is only one file in it. So you could try
tar cvf ARCHIVE.TAR ./file_to_be_winunziped
gzip ARCHIVE.TAR
ftp this one (binary)
and open ARCHIVE.TAR.gz with winzip.
Good hunting
Volker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2003 10:57 AM
08-05-2003 10:57 AM
Re: from UNIX to DOS, still can't make it work, end-of-line
Thanks all.
I ended with that gzip/winzip don't like each other at least on my machine, as flat file working fine being FTP from UNIX to WIN.
I assumed that winzip will work fine for .gz or .tgz.
Will keep shooting.
NIkola
It'a another real sample of my data attached.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2003 11:51 AM
08-05-2003 11:51 AM
Re: from UNIX to DOS, still can't make it work, end-of-line
strings old_file > new_file
and then compare the sizes of the two files to see how much (if any) data you lost.
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2003 12:54 PM
08-05-2003 12:54 PM
Re: from UNIX to DOS, still can't make it work, end-of-line
checked with srtrings. Sizes are all same.
It's defenetely gzip vs winzip problem.
I'm working with systems to get new zipper.
Thanks to all
Nikola
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2003 07:37 AM
08-06-2003 07:37 AM
Re: from UNIX to DOS, still can't make it work, end-of-line
Text file created in unix had a ^L for top-of-form, but when ftp'd to an NT box, it lost the TOF.
Didn't matter if I sent it over as ascii or binary, etc.
Turns out that it's the fault of the notepad/wordpad program being used and varies between Win95,98,ME and NT.