Artificial intelligent assistant

How to close epiphany through a script with cron? I have been making scripts to open and close a specific website with a cronjob on the raspberry Pi. The opening script works perfectly. It is as follows: #!/bin/bash export DISPLAY=:0 && epiphany-browser sleep 30 xte "key F11" -x:0 xte "key F5" -x:0 But the one to close the browser doesn't work at all, and I can't figure out why. Is there something wrong with the script? I made it by looking at this SuperUser question. #!/bin/bash WID = `xdotool search "epiphany-browser" | head-1` xdotool windowactivate --sync $WID xdotool key --clearmodifiers ctrl+q Note: Couldn't get this code to work but the "killall" command works just fine.

Kill it!


#!/bin/bash
killall epiphany


And btw: on my system (Debian Jessie) the process name is just `epiphany`. You can see the process list e.g. with `ps -A`.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 150c5ff72f2f45c6b418b08fcedec950