[Chicago-talk] :SPAM: Re: Script creates bad file when not run as root
Elias Lutfallah
eli at mortgagefolder.com
Wed Dec 13 20:06:32 PST 2006
Jim Jacobus wrote:
> The "bad" file is always only about 1500 bytes in size, no matter how
> much data is sent to it. It's just junk so diff doesn't give any help.
> I checked for errors every step of the way, but everything looks ok. I
> reduced it to just creating a worksheet and workbook for simplicity.
>
>
> >I know that the xls that is spit out is binary, but have you diffed
> >the good and bad files to see just how corrupt the bad file is?
Is the xls that comes out truly a binary file? Try running `file
test.xls` and see what kind of file it reports as. If it's binary, then
try `strings test.xls` to see if any embedded text can lead you in the
right direction. If it's text, vim the file and see what it is.
More information about the Chicago-talk
mailing list