Am 17.09.2014 20:44, schrieb Thomas Maaß:
How can I compare the wakeup times in a bash script? A "0" is given when no timer is present?
Basically, something like this:
boottime="$1" if [ "$1" -eq 0 -o "$1" -gt "$tomorrow" ] ; then boottime="$tomorrow" fi
After that, use $boottime instead of $1 for wakeup programming. Untested, ymmv.
Cheers,
Udo