Quantcast
Channel: MobileRead Forums - Kindle Developer's Corner
Viewing all articles
Browse latest Browse all 4440

Shell Script Kindle 4nt

$
0
0
i wrote this little script (my first one) for the kindle 4nt but it dont work. this script should turn the page after 1 minute

i connect to my kindle by ssh and make it executable "chmod +x test.sh"

and i execute it with: sh test.sh

her is the code:
Quote:

#!/bin/sh

sleep 1[m]
echo "send 191" > /proc/keypad
echo "Done!"
thats what i get
Quote:

login as: root


Welcome to Kindle!

root@192.168.0.106's password:
#################################################
# N O T I C E * N O T I C E * N O T I C E #
#################################################
Rootfs is mounted read-only. Invoke mntroot rw to
switch back to a writable rootfs.
#################################################
[root@kindle root]# cd /mnt/us
[root@kindle us]# chmod +x timer.sh
[root@kindle us]# sh timer.sh
: not foundine 2:
'leep: invalid number '10[s]
: nonexistent directoryt create /proc/keypad
timer.sh: line 4: send: not found
Done!
can anyone tell me whats wrong?:blink::blink::blink:

Viewing all articles
Browse latest Browse all 4440

Trending Articles