Quote:
Originally Posted by jmseight
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.