Re: What is the best way to run a bash script periodically?
Posted: Wed Jul 20, 2016 8:19 pm
In your init you should launch script (with &) that will have the loop
That's how you should do it 


Samsung TV Firmware on the GO
http://forum.samygo.tv/
Actually I confused. How can I launch my script in init?sectroyer wrote:In your init you should launch script (with &) that will have the loopThat's how you should do it
Code: Select all
#!/bin/sh
upSeconds="$(cat /proc/uptime | grep -o '^[0-9]\+')"
upMins=$((${upSeconds} / 60))
until [ "${upMins}" -gt "2880" ] ; do
sleep 30m
upSeconds="$(cat /proc/uptime | grep -o '^[0-9]\+')"
upMins=$((${upSeconds} / 60))
done
samyGOrc -p $(pidof exeTV || pidof exeDSP) 152
It works very well.juusso wrote:I guess it should. Try and tell ussmart_lover wrote:Does this lib works in H series?