View Single Post
Old 01-16-2014, 03:16 PM   #10
pacraf
Junior Member
pacraf began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jan 2014
Device: K3 keyboard
I never wrote a line of script...

but maybe something like this
Code:
#!/bin/sh
killall -STOP cvm;
killall -STOP powerd;
while :
do
cd "$(dirname "$0")"
rm .weather-script-output.png
eips -c
if wget http://docs.volcanis.me/weather-script-output.png -O .weather-script-output.png; then
	eips -g .weather-script-output.png
else
	eips -g .weather-image-error.png
fi;
sleep 600
done
#we will never reach this point right?
#killall -CONT cvm;
#killall -CONT powerd;
# Go Home
#echo "send 101" > /proc/keypad
so when script will be started - only device reboot will stop it, right?
Will it work - don't want to make my kindle fubar...

Show mercy and write good script... please.
pacraf is offline   Reply With Quote