Operating System - HP-UX
1833758 Members
2366 Online
110063 Solutions
New Discussion

Re: Open an ASCII text file in DOS mode

 
SOLVED
Go to solution
VARITRONIX
Occasional Advisor

Open an ASCII text file in DOS mode

I have written a script that will generate a report in UNIX. However, when I "ftp" this file to Windows98 and try to open it, it looks totally different from what I can see in UNIX. Is there any convertor which can convert an ASCII file in UNIX to be readable in DOS?
Kwan Chris
3 REPLIES 3
Andreas Voss
Honored Contributor
Solution

Re: Open an ASCII text file in DOS mode

Hi,

use the command

ux2dos

in you script ie:

| ux2dos > file

Regards
Jdamian
Respected Contributor

Re: Open an ASCII text file in DOS mode

when you FTPs that file to Windows98 you must transfer it in ASCII mode.

FTP will convert to DOS mode
VARITRONIX
Occasional Advisor

Re: Open an ASCII text file in DOS mode

To Andreas,

Thanks for your help. I was searching for other C program called unix2dos.c but didn't know HP-UX has this utility already.

Kwan Chris