This question has already been answered:
I didn’t do this before, but I got to write an ssh file (cron) that I need to put on the server so that it stops and starts the server every two hours. Can someone tell me where to read or tell how to do it and where to throw it?
bash
script that does useful work (restarting the server), upload this script to the server and create a task incron
with a call to your script with a specified frequency. - zed