I use the command so that every 10 hours my program will start and shut down after 10 hours, but it doesn't work.
watch -n 36000 'nohup ./MainLobbyServer.x86_64 && sleep 10h && kill "$!" '&What i do wrong?
these command return
[3] 57518[3]+ Stopped watch -n 36000 './MainLobbyServer.x86_64 && sleep 10h && kill "$!" '