At: Difference between revisions
From wikinotes
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<code>at</code> is a tool that schedules a job to run once, at a specific time. <br> | <code>at</code> is a tool that schedules a job to run once, at a specific time. <br> | ||
You can combine with <code>notify-send</code> for reminders.<br> | |||
These jobs persist on reboot. | These jobs persist on reboot. | ||
Line 19: | Line 19: | ||
</source> | </source> | ||
</blockquote><!-- install --> | </blockquote><!-- install --> | ||
= Usage = | |||
<blockquote> | |||
Scheduling Reminders or Tasks | |||
<syntaxhighlight lang="bash"> | |||
echo 'notify-send "do thing"' | at now + 5 minutes | |||
echo 'notify-send "do thing"' | at 3pm tomorrow | |||
# NOTE: you may need to export display | |||
echo 'export DISPLAY=:0; notify-send "do thing"' | at 4:00 PM | |||
</syntaxhighlight> | |||
Managing Queued Reminders | |||
<syntaxhighlight lang="bash"> | |||
atq # list pending tasks | |||
atrm 123 # delete reminder 123 | |||
</syntaxhighlight> | |||
</blockquote><!-- Usage --> |
Latest revision as of 17:38, 18 February 2023
at
is a tool that schedules a job to run once, at a specific time.
You can combine with notify-send
for reminders.
These jobs persist on reboot.
Install
sudo pacman -S at sudo systemctl enable atd sudo systemctl start atd# ? launchctl load -w /System/Library/LaunchDaemons/com.apple.atrun.plist # add your username to: /var/at/at.allow
Usage
Scheduling Reminders or Tasks
echo 'notify-send "do thing"' | at now + 5 minutes echo 'notify-send "do thing"' | at 3pm tomorrow # NOTE: you may need to export display echo 'export DISPLAY=:0; notify-send "do thing"' | at 4:00 PMManaging Queued Reminders
atq # list pending tasks atrm 123 # delete reminder 123