I am using variables to state the start time and date for an
at job. This works fine, but now I realize I need to subtract a number of hours from the time variable to make the at job run earlier than is stated in the variable (this variable is used elsewhere in the script as well as for the at job)
#variables time=2:00pm date=2018-1-16 #I need to subtract 4 hours from the time variable at -f /home/JS/filename $time-4hours $date >attemp 2>&1
I thought about introducing a 3rd variable as the result of the subtraction but can't get that going either.