embiggen time tools

This commit is contained in:
2023-04-13 06:06:54 +02:00
parent c51c81ab52
commit 03a57e43f6
2 changed files with 20 additions and 2 deletions

View File

@@ -43,3 +43,15 @@ This will print all pending IDs. Remove a job by the ID with:
> atrm 2
Check /var/spool/atd/
## Automation
Automatically add a job for later, by setting the date, then using echo for the command.
> t="$(date -d "2 minutes" +%R)"
> echo "fortune > ~/file" | at "$t"
> watch cat file
The `$t` here outputs the day in minutes, but you could also do `t="$(date -d "2 days" +%m/%d/%Y)"`.