Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 7169

How to write a proper command in linux to run an application after some time? [closed]

$
0
0

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 "$!" '

Viewing all articles
Browse latest Browse all 7169

Trending Articles