[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cgi-list
Subject:    Re: [CGI] Replacing premature EOF character?
From:       "Raistlin Majere" <raistlin () shadow ! net>
Date:       1998-06-23 0:03:29
[Download RAW message or body]

I know there is a utility for Unix that you could run before FTP'ing called

unix2dos

And there is also a

dos2unix

Which converts all weird Unix characters to readable Dos like characters,
and visa versa.  I dont know where you can get it, but all Solaris machines
I have ever worked on have it.  Chances are you can download it from
somewhere.

-----Original Message-----
From: Chris Smith <csmith@NTR.NET>
To: CGI List <cgi-list@jann.com>
Date: Monday, June 22, 1998 5:43 PM
Subject: [CGI] Replacing premature EOF character?


>I'm currently trying to parse data from a flat file and am running into
>problems with what I believe is a premature EOF character.
>
>The process:
>
>1) Flat file is generated on a SCO UNIX system.
>2) Flat file is FTPed from SCO UNIX to Windows NT
>3) Perl script is executed on Windows NT to parse flat file.
>
>What is really strange is when I bring up the file in vi, everything
>looks great.  If I bring up the file in Notepad or MS-DOS edit, I get
>what looks like a premature EOF character in position 2 of line 10.
>(i.e. "->" as one character in MS-DOS edit)
>
>When I open the file and read in the contents into an array, it stops at
>character position 2 on line 10.
>
>Someone have a clue as to what is going on here?  Or maybe what I can do
>to get around this?  (besides doing everything on UNIX)
>
>TIA,
>
>Chris Smith
>csmith@ntr.net
>
>
>
>-----------------------------------------------------------------
>For subscription information,
http://www.jann.com/lwgate/lwgate.pl/CGI-LIST/.
>
>The CGI Tips & Tricks website (and archive of the list) is located
>at http://www.jann.com/Perl/
>
>cgi-list is hosted by Wizards of the Web (http://wizweb.com).
>-----------------------------------------------------------------

-----------------------------------------------------------------
For subscription information, http://www.jann.com/lwgate/lwgate.pl/CGI-LIST/.

The CGI Tips & Tricks website (and archive of the list) is located
at http://www.jann.com/Perl/

cgi-list is hosted by Wizards of the Web (http://wizweb.com).
-----------------------------------------------------------------

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic