Nov 092018
 

Raspberry Pi

Autostart

Bash Script

Cron

#!/bin/bash

xdotool search –onlyvisible –class “chromium” windowfocus && xdotool key ctrl+Tab

chmod u+x scriptname
./tab-revolver.sh

./home/pi/tab-revolver.sh

* * * * * /home/pi/tabrevolver.sh >> /home/pi/tabrevolver.log 2>&1
* * * * * sleep 15; /home/pi/tabrevolver.sh >> /home/pi/tabrevolver.log 2>&1
* * * * * sleep 30; /home/pi/tabrevolver.sh >> /home/pi/tabrevolver.log 2>&1
* * * * * sleep 45; /home/pi/tabrevolver.sh >> /home/pi/tabrevolver.log 2>&1

* * * * * /home/pi/tabrevolver.sh >> /home/pi/tabrevolver.log 2>&1

 Posted by at 7:06 pm

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

(required)

(required)