Starting a program at a specific time

120 Views Asked by At

Recently I have a program which does daily restarts with a while loop that every time the program shuts down, the while loop will bring it back up.

But I want to change that to that it will only start up at a specific time every single day in a specified screen (screen -r 39191)

Current code:

while true; do ./program; done;

I am trying to do something like this

if time = 6 am or when I paste this script in console; do ./program; done;

Is this possible on Linux (Ubuntu)? Thanks in advance

0

There are 0 best solutions below