View Single Post
Old 03-29-2012, 08:26 PM   #8
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by jmseight View Post
This works for me when I telnet into the K3 via USB, but for some reason does not run well when I use it as a kite script.

Also, I think you can break a long line into the next line by the following slight mod:
...
st="$(echo $st | cut -b51-$ii)"
...
which is good for "ls -l"

BTW, you are right about the "${s:a:b}" not working in a script. It worked fine in telnet does not work in script.

Thanks,
James
Perhaps kite needs the cvm still running? Try commenting out the killall lines...

Actually, I was planning to implement line-wrap like that, but I often leave things incomplete when I need sleep.

There are some odd issues when trying to write code that works in all modes on all the kindles. Some things even behave a little differently between diags and main boots on the same kindle. Then things can change with firmware updates.

Thanks for the update. I may get around to adding that to my script posted above... (later).

By the way, you should wrap code in CODE tags:

[ code ]
... code here ...
[ /code ]


except, leave out the spaces around the brackets, which were added here just so you could see them.


Last edited by geekmaster; 03-29-2012 at 10:04 PM.
geekmaster is offline   Reply With Quote