View Single Post
Old 07-20-2010, 02:30 PM   #16
Dave_S
What Title ?
Dave_S ought to be getting tired of karma fortunes by now.Dave_S ought to be getting tired of karma fortunes by now.Dave_S ought to be getting tired of karma fortunes by now.Dave_S ought to be getting tired of karma fortunes by now.Dave_S ought to be getting tired of karma fortunes by now.Dave_S ought to be getting tired of karma fortunes by now.Dave_S ought to be getting tired of karma fortunes by now.Dave_S ought to be getting tired of karma fortunes by now.Dave_S ought to be getting tired of karma fortunes by now.Dave_S ought to be getting tired of karma fortunes by now.Dave_S ought to be getting tired of karma fortunes by now.
 
Posts: 1,325
Karma: 1856232
Join Date: Jan 2009
Location: Bavaria Germany
Device: Sony Experia Z Ultra
Quote:
Originally Posted by Spiffy View Post
Its a Unicode issue, right? Whatever text editor you use has to be able to save that way.
Actually, I had Notepad++ set for UNIX and ANSI, so the text was not in a Unicode like UTF-8 or Windows-1252. ANSI is basically just ASCII character codes, but what I think caused all my problems in getting the script to work was the line endings. Windows text ends all lines with a Carriage Return Line Feed sequence, while Linux/UNIX text ends all lines with just a Line Feed. I believe Mac text ends all lines with just a Carriage Return, but I am not really familiar with Mac text formating. In any case, if the line ending is wrong then the shell parser just gets confused and the command ends up not being executed. Of course, on the PocketPRO you can not see when the shell emits an error message, so I had to try for quite a while to get that simple script to work. But now it works great for me, and now I can easily clear the cache if it gets corrupted.
Dave_S is offline   Reply With Quote