Does the device support cron for scheduling?
As far as the script is concerned...
I would use
ps -ef to display all running processes
and
grep br[o]wser to get just the entries that I was after
and use
wc -l to count the number of entries returned.
Then it's just a case of running a
test on the number of records and if
-eq 0 then run
browser & (in background:
Code:
#!/bin/ash
if [ $(ps -ef|grep br[o]wser|wc -l) -eq 0 ]
then
browser &
fi
You might want to modify it a bit, but check the general process first, aditionally, you might want to run
type browser from the command line to get the full path (as the PATH environment variable isn't always the same if run through cron)
Good luck.