-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
I currently really dont have time, but its very easy in bash to do yes/no or input dialogs.
It is nessecary for people to choose things like interval, when to apply, or others like if apply on boot.
while true; do
read -p "Do you want that? (y/n) " yn
case $yn in
[Yy]* ) do something && break;;
[Nn]* ) break;;
* ) echo "Please answer yes or no.";;
esac
done
read -p "How often do you want to do updates? " interval
echo $interval
And so on. I think you already know that stuff, just to make it quicker 😄
# run on the minute of every minute every hour of every day
OnCalendar=*-*-* *:*:00
# run on the hour of every hour of every day
OnCalendar=*-*-* *:00:00
# run every day
OnCalendar=*-*-* 00:00:00
# run 11:12:13 of the first or fifth day of any month of the year
# 2012, but only if that day is a Thursday or Friday
OnCalendar=Thu,Fri 2012-*-1,5 11:12:13
so like ask for every digit in the OnCalendar and then construct the thing e.g.
Metadata
Metadata
Assignees
Labels
No labels