Questions tagged [at]

A utility used for scheduling an event to happen once at some point in the future.

The at utility reads commands from standard input and group them together as an at-job, to be executed at a later time.

External reference

at specification (The Open Group Base Specifications Issue 7, 2018 edition)

171 questions
42
votes
6 answers

Remove all `at` jobs

I know that to remove a scheduled at job I have to use atrm "numjob1 numjob2", but is there an easy way to do that for all the jobs?
robob
  • 584
  • 1
  • 4
  • 12
41
votes
6 answers

Why do we need the "at" command in Linux?

I was studying code in which the at command is used. I looked around and found that it is used to execute batch jobs. It is used to schedule jobs. It is given, as its input, a command, and a time, relative or absolute. So, my first question is: why…
Akshay Patil
  • 795
  • 2
  • 7
  • 11
30
votes
2 answers

What is the difference between shutdown 18:00 and at 18:00 shutdown?

at 18:00 shutdown now and shutdown 18:00 , are they starting the same service? Do they work the same way?
yang
  • 403
  • 4
  • 5
22
votes
1 answer

Does `at` run a command later if the computer is off at the specified time?

I want to schedule jobs with at, but I'm not sure what happens if the computer is suspended at the specified time: Will the command be executed as soon as the computer wakes up again (like with anacron) or will it not be executed at all (like with…
dessert
  • 1,687
  • 14
  • 29
19
votes
4 answers

Why does this 'at' command not print to the standard output?

I am a relative Linux novice. I am trying to learn how to use at so that I can schedule tasks to begin at a later time, without using sleep. I have been looking at this previous question for help. My question is, in the following sample bash…
Andrew
  • 16,315
  • 34
  • 73
  • 77
18
votes
3 answers

Where does the output of `at` and `cron` jobs go?

Where does standard output from at and cron tasks go, given there is no screen to display to? It's not appearing in the directory the jobs were started from, nor in my home directory. How could I actually figure this out given that I don't know how…
Michael Durrant
  • 41,213
  • 69
  • 165
  • 232
17
votes
4 answers

Why does `at` warn me that commands will be executed using /bin/sh? What if I want a different shell?

I tried to use at from within a script of mine and it prints: warning: commands will be executed using /bin/sh How would I use different shell if I wanted?
Cratylus
  • 499
  • 3
  • 6
  • 12
15
votes
2 answers

Making "at" work on macOS

I am working on a CentOS server and schedule a task with command at # echo "touch a_long_file_name_file.txt" | at now + 1 minute job 2 at Wed Oct 31 13:52:00 2018 One minute later, # ls | grep a_long_file_name_file.tx a_long_file_name_file.txt the…
AbstProcDo
  • 2,453
  • 4
  • 23
  • 55
15
votes
1 answer

Why does the echo command do not work with at command?

when I type: at now + 1 min at>play /usr/share/sounds/startrek.wav at>ctrl+d it works, so after one minute there is actually a sound played. but, when I type: at now + 1 min at>echo "Teresa the green vegetable lover" at>ctrl+d I got no error…
Abdul Al Hazred
  • 25,760
  • 23
  • 64
  • 88
12
votes
1 answer

How does `at` know there will be a time change?

I happened to be twiddling around with at just yesterday at 2:40 AM. (Don't ask...) I tried scheduling events one minute in the future (as a test), and – it just didn't happen. The events were in the queue allright, but they just stayed there when…
leftaroundabout
  • 644
  • 6
  • 15
12
votes
6 answers

at some time from now do something (and maybe also show result in console)

I use Ubuntu server 16.04 and I desire to use the utility at in my current session to do something 1 minute from now (say, an echo), without giving a specific date and time - just 1 minute ahead from current time. This failed: echo 'hi' | at 1m The…
Arcticooling
  • 1
  • 12
  • 44
  • 103
12
votes
3 answers

sort at jobs chronologically

Possibly a simple solution I misplaced. How can I get the output of atq sorted chronologically, so I can easily see who's due to run next? The man page for sort doesn't have anything built-in to recognize timestamps like the following: atq 1264 …
Marcos
  • 2,275
  • 2
  • 23
  • 32
12
votes
1 answer

How do I send postponed mail at a later time with Mutt?

I don't like waking up early but people prefer to be emailed in the morning rather than at 3AM. Therefore I often use at to send the email whilst I'm asleep. But that comes with the complication that I need to write the email as a text file and send…
grochmal
  • 8,489
  • 4
  • 30
  • 60
12
votes
1 answer

at command: Garbled time

I am not able to run at command. edward@ArchLinux:~$ at Garbled time what is wrong? Am I running it wrong?
Alex Jones
  • 6,223
  • 17
  • 51
  • 83
10
votes
1 answer

Does at scheduled tasks remain after reboot?

I'm using at to schedule a task for a later time. Will it survive a reboot, or should I re-assign all the tasks after reboot ?
Asaf Nevo
  • 203
  • 1
  • 5
1
2 3
11 12