As with cron
, the atd
service is not started by default on WSL:
$ at now + 1 minute
warning: commands will be executed using /bin/sh
at> echo "Hello from at" > ~/at.log
at> <EOT>
job 1 at Thu Apr 7 08:02:00 2022
Can't open /var/run/atd.pid to signal atd. No atd running?
$ service atd status
but it may be started if you wish:
$ sudo service atd start
[sudo] password for steeldriver:
* Starting deferred execution scheduler atd [ OK ]
then
$ at now + 1 minute
warning: commands will be executed using /bin/sh
at> echo "Hello from at" > $HOME/at.log
at> <EOT>
job 2 at Thu Apr 7 08:03:00 2022
$ atq
2 Thu Apr 7 08:03:00 2022 a steeldriver
$ atq
(queue is now empty)
$ cat ~/at.log
Hello from at
service atd status
say? – steeldriver Apr 07 '22 at 12:04sudo service atd start
. Thank you so much @steeldriver – mustafabaki Apr 07 '22 at 12:14