Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4941

Advanced users • Re: disable Autostart

$
0
0
You could also check the date in the bash script and exit the script if the date is not right.

Code:

#!/bin/bash# Exit if month is not Julymm=$(date +%m)if [ $mm -lt 7 ] || [ $mm -gt 7 ]; then exit; fi# Exit if date is not 10..20dd=$(date +%d)if [ $dd -lt 10 ] || [ $dd -gt 20 ]; then exit; fiecho "ok, run the script"

Statistics: Posted by NotRequired — Tue Jul 30, 2024 11:56 am



Viewing all articles
Browse latest Browse all 4941

Trending Articles