Fw: error

Brian K. White brian at aljex.com
Sat Jan 13 05:04:46 PST 2007


SCO's "xtod" utility does add the ctrl-z to the end as well as add  ctrl-m's 
to the lines.
(and "dtox" strips it too)
Given that, it's a possible guess that SCO's "doscp" does the same, 
especially since the doscp man page says it will do lf/crlf conversions by 
default unless told not to with "-m".

"man doscp" never mentions the trailing ctrl-z though, only the cr vs crlf 
conversions.
It does refer to the dtox and xtod pages though and those do mention the 
ctrl-z prominently.
The doscp page does say that with -m it's a true byte for byte copy, so 
presumably doscp -m won't add the ctrl-z either.

I'd create the carriage returns as part of the filepro export and stop using 
doscp or at least start using "doscp -m".

--
Brian K. White  --  brian at aljex.com  --  http://www.aljex.com/bkw/
+++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
filePro  BBx    Linux  SCO  FreeBSD    #callahans  Satriani  Filk!



----- Original Message ----- 
From: "Kenneth Brody" <kenbrody at bestweb.net>
To: "Robert Pulliam M.D." <pulliamr at earthlink.net>
Cc: "Fplist (E-mail)" <filepro-list at seaslug.org>
Sent: Wednesday, January 10, 2007 1:12 PM
Subject: Re: Fw: error


> Quoting Robert Pulliam M.D. (Wed, 10 Jan 2007 12:43:59 -0500):
>>
>>     Using Unix and filepro.  Create export file in the unix machine
>> using the  command   export word tel = (gb).  The file is created
>> properly.  I then either doscp to a floppy or using Anziowin ftp the
>> file to a Windows machine.   If I read the file in notepad there is a
>> small square in the first place of the last line of the file not in the
>> last record - this is a chr(26) character.  This character prevents
>> loading or importing this file into a phonetree program. The file name
>> is AO011107.002.   I can remove this character in notepad and the file
>> works fine but if I don't the file will not import as above.  How do I
>> eliminate this character in the file creation or in the ftp process or
>> in the loading process to notepad.
>
> filePro doesn't put the Ctrl-Z there, and I've never seen an ftp
> client add one.  (It's been too many years since I've used doscp
> to say one way or the other.)
>
> Are you sure you don't have something in your processing to put a
> Ctrl-Z after the last record?
>
> --
> KenBrody at BestWeb dot net        spamtrap: <g8ymh8uf001 at sneakemail.com>
> http://www.hvcomputer.com
> http://www.fileProPlus.com
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> http://mailman.celestial.com/mailman/listinfo/filepro-list
> 



More information about the Filepro-list mailing list