title: How to restart python script inside bash script every x hours?
body: <p><br>I have a quite simple question about starting and restarting python scripts inside an bash script. I hope it's not an duplicate but I didn't find a similiar question. <br> I'm using a bash script which starts a couple of python scripts every time I create a docker container, but It should be probabaly the same on all linux based machines. It's simple as:<br> <br> <code>python3 /mnt/device/script.py &amp;
  </code> <br> Now the script will keep running and measure the brightness until the container is stopped. Now I figured out that there are some problems with the sensor library which are brightly discussed on github and still not solved which causes the script to stop every couple of hours. For me It would be enough to have just some command which restarts my script which is running in the background every x hours to avoid that error.<br> So what I'm looking for ist some command which will be like the follwing:<br> <br> <code>python3 for hour=1 /mnt/device/script.py restart &amp;</code>
  <br> <br>
  Thanks in advance!</p>