I have a bash script that runs periodically once a day using crontab
.
The script checks a condition, and if true, it should issue an at command
at a specific time.
at 14:10 <notify-send hello>
The question is: how can I add a specific command like notify-send
to the at
command?
at
is expecting a command from STDIN.If you want to silence the
/bin/sh
warning, run it this way:As I was searching for a fast way to remind myself using dunstify/notify-send I want to promote @Ruslan 's comment, because it involves less typing (which is essential when you want to "just set a timer")
... or with less whitespace/characters:
-t 0
don't timeout the notification and keep it openand just for information: as an improvement to
atq
orat -l
listing I use an alias that also prints the executed command, not just time/queue/user:(as mentioned here in serverfault)
* tested with Manjaro21/Debian10