Top Post ==>>Re: Linux filepro not reading ascii processing table from widows

Eric Yundt eric at facetcorp.com
Thu Sep 2 19:43:27 PDT 2004


Dear Ancient One:                           [ FacetID=56410637:FW ]

If you have the 'dos2unix' package installed, try running the 'dos2unix'
command on the affected file.  Here is how I found it on a Fedora Core 1
machine I was playing on.

    root facetphone:/usr/facetphone # type dos2unix
    dos2unix is /usr/bin/dos2unix
    root facetphone:/usr/facetphone # rpm -qf /usr/bin/dos2unix
    dos2unix-3.1-16

One way to run it is:

    dos2unix < BADFILE > GOODFILE

Then check the GOODFILE to see if it looks the way you'd like it.

If you don't have the 'dos2unix' command, you could use this little
one-liner shell script we have on our FTP site:

    ftp://ftp.facetcorp.com/scripts/facetwin/dos_to_unix

Use it just like 'dos2unix':

    dos_to_unix < BADFILE > GOODFILE

Of course it requires that you have 'sed' on your system...  ;-)

If you don't have 'sed' on your system, you should be able to get rid
of the DOS EOL chars well enough by bringing the file back into 'vi' 
and then doing:

    :%s/^M$//

To enter the '^M' character represented above, press CTRL-V and then
CTRL-M.  Save the file out with a new name and check it to see if it
is okay.

If you'd like to email the file to us I'd be glad to convert it for
you and stick it out on our FTP site for your convenience.

Good luck!

--
Eric


Tony Freehauf wrote:
> 
> hi ken
> thanks for the response
> i am using the following work around:
>   cp over the processing  table & the same processing table with a suffix of x
>   use filepro & open the processing table
>    f4 (delete) all lines
>    add 1 line line like ' comment and save
>    use vi to open the processing table
>    add 1 line and use r processname with suffix x to append to the processing 
> table.
>    now save & processing table will be good.
> old tony
> 
> On Thursday 02 September 2004 20:00, Kenneth Brody wrote:
> > Tony Freehauf wrote:
> > > hi experts
> > > i am converting running filepro program from windows to Linux.
> > > The processing tables are not converting.
> > > The table loads with lots of strange characters and us useless
> > > These tables are in ASCII text.
> > > ABE = ascii is set in /appl/fp/lib/config
> > > for testing i wrote a test processing table and it saves correctly and
> > > looks the same as the file that was copied over from windows.  All files
> > > are owned by filepro. There are no crazy hided characters, i checked with
> > > set list. help desperately needed
> >
> > Make sure that you copy them from Windows to Linux using a _text_
> > transfer method.  Otherwise, the Windows CRLF end-of-line will confuse
> > Linux programs, which are expecting LF end-of-line.
> >
> > By "set list", I assume you're using vi (or equivalent)?  Some versions
> > of vi are "smart" enough to know that it's a DOS-formatted file, and not
> > show the extra CR at the end of each line.  Type Ctrl-G and see if it
> > says "[DOS format]" after the filename.
> 
> -- 
> **********************************
>      YNOT SOFTWARE & PC Support
>             Tony Freehauf
>             841 Sivert Ave
>          Wood Dale, Il 60191
>          Office 630-274-2808
>         tony at ynotsoftware.com
>           Phone 800.677.9171
>          Fax   866.871.6756
> ***********************************
> 

--
Eric Yundt

FacetPhone by FacetCorp -- Next Generation IP-based PBX and IVR System
1820 Preston Park Blvd, Plano TX USA  75093   http://www.facetcorp.com
Phone: 972-985-9901       Fax: 972-612-2035   support at facetcorp.com



More information about the Filepro-list mailing list