View Single Post
Old 08-12-2014, 08:59 AM   #1
nixlos
Member
nixlos began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Dec 2013
Device: kindle 4
Shell Script Kindle 4nt

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?

Last edited by nixlos; 08-12-2014 at 09:31 AM.
nixlos is offline   Reply With Quote