For starters, I'm a total beginner when it comes to Linux/AWS/system stuff like this. At the moment, I have a nanny script (from an earlier question) that is running 24/7:
#!/bin/bash
while [ True ]
do
python3 script.py
done
However, it's chewing up CPU time and starting to cost me more than it should. In reality, I dont need this script to run from:
10pm-3am EST Mon/Tues/Weds/Thurs/Fri
10pm EST Fri -> 3am Monday
Is there a simple way to setup some sort of scheduler for this nanny script, so that it shuts itself off during those above times? I've heard 'cron job' brought up before, but have no clue to set one up.
PS. Not sure this matters, but I use "screen" to run my nanny script, so that it doesnt quit as soon as I close out of the terminal connection.