How can I restart zcashgpuclient once in a while in Ubuntu? I freezes every now and then but when I restart it, it's fine. I want to automate this procedure.
I've written a bash script like this
#!/bin/bash
cd /home/user/zcashclient-0.2.2
while [ 1 ];
do
gnome-terminal -e "./zcashgpuclient_silentarmy"
sleep 600
killall "zcashgpuclient_silentarmy"
done
But the problem is that the killall command dosen't work for me. It actually kills the process if I execute it manually in another terminal window but it does nothing if it is run from the script.
Any Linux savvy guys to shed some light?