I read this Question: "How do I write a bash script to restart a process if it dies" with this piece of code :
until myserver; do
echo "Server 'myserver' crashed with exit code $?. Respawning.." >&2
sleep 1
done
I want to use this code for restarting my .exe program with mono but after several attempts I still can't do it
sudo nohup mono /home/pi/Desktop/Baykush/Baykush.exe > /home/pi/Desktop/Baykush/output.out 2>/home/pi/Desktop/Baykush/output.out &