View Single Post
Old 07-31-2013, 04:37 AM   #2
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
calkin-kindle-sync

You are doing all of your file operations directly in flash !
Not a great idea for several reasons.

Stage your file operations -

1) Using a size limited, tmpfs backed, file system -
Do all your file operations that you can in this stage.

2) When a file is completely ready -
Transfer it to flash with a single "mv ... ..." command.

I do not see any handling of IFS in the script.
That may well be part of your filename handling problems.

Another thing to consider about the filename handling -
The file will end up on a FAT32 filesystem, with all that implies.
PLUS
You might want to view the options that file system is mounted with in the Kindle, there may also be characterset problems.
knc1 is offline   Reply With Quote