Questions tagged [at]

at is a Unix command that can be used to run other commands at a specified time.

58 questions
8
votes
2 answers

Peek at `at` output before it completes

Let's say I run a script with at on Linux (example below) that I know is going to take several hours, or maybe even multiple days. I'm accustomed to at sending an email with the output of the command once it completes, but what if I wanted to peek…
Drew Chapin
  • 6,270
7
votes
1 answer

MacOS - "at" command is not working

I've started the atrun daemon using the following command. $ sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.atrun.plist Added my username to /var/at/at.allow file. $ cat /var/at/at.allow myusername And created a job using at…
7
votes
1 answer

'at' command intended behaviour? Launching each commands instead of scheduling

I'm trying to schedule the execution of some programs. I'm using this command: ./tests.o | at 15:00& If I understood correctly, the intended behaviour was to delay execution until 15:00. However if I run top as soon as I launch the above command, I…
6
votes
2 answers

Linux at command with seconds precision

I'm looking for a Linux command to launch another command at a specific time. I know about the at command, but it gives me only minutes precision, and I need seconds precision. Is there an at option I'm not aware of? Or another command?
5
votes
2 answers

Linux 'at' command history

I got an email from root with the subject Output from your job # I guess this came from my at queue because I recognized the command. But the thing is I submitted this at command 3 weeks ago and is also suppose to execute 3 weeks ago. So I am now…
alpot
4
votes
1 answer

Does the `at` command run missed jobs?

If I use at to schedule a command and the trigger time is missed (e.g. due to an unexpected power failure), will it still execute at the earliest possible time? (e.g. once power comes back on and it reboots) Example: I schedule command to run at…
arcyqwerty
  • 1,080
3
votes
1 answer

How to run overdue at jobs

Sometimes I have at jobs overdue after system-suspend that don't run after waking up. How can I tell atd to run them? I tried atd -s or atrun but I guess that isn't meant for this as it doesn't run the overdue jobs.
Greg C
  • 316
3
votes
2 answers

How to list all 'at' jobs without root privileges?

For listing jobs added by at and batch I use atq, but it lists only my jobs. I can run atq with root privileges and then it lists jobs from all users. How can I list all jobs without root privileges?
klew
  • 282
3
votes
1 answer

Puzzle of atrm vs at -d

I've found some puzzle with atrm command I can't understand. The man page for at says that atrm is an alias for at -d. The file /usr/bin/atrm command says that it is a symbolic link to at. Now if atrm is a link to at then my understanding is that…
golem
  • 359
3
votes
1 answer

Have the at command return the job id of the task just submitted

Is it possible to have the at command return somehow the job id it just submitted when used from within a script? (kind of like $? retrieves the last exit code or $$/$! retrieve the PID of the command just executed).
yannisf
  • 251
3
votes
1 answer

How can at execute a command from the command line

How can I schedule a command using at without having to include the command in a distinct file, neither from the mini at shell that reads from standard input? That is, I want to execute the command: find /path -name "pattern" > output.lst after X…
yannisf
  • 251
3
votes
1 answer

Command scheduled with `at` fails but gives no error

I recently learned about the at command in Unix system. Let's say I want a Python script (that might crash) to run 2 hours after I launch it. I do something like this: $ echo python3 my_script.py | at now + 2hours I have few questions: Is it the…
isaac
  • 31
  • 4
3
votes
2 answers

"at" command on Ubuntu

I want to list using the "at" command. I try this: pedro@Pedro-PC:~$ ls -l | at 10:27 warning: commands will be executed using /bin/sh job 5 at Tue Apr 20 10:27:00 2010 But doesn't work.
user34104
  • 87
  • 1
  • 4
2
votes
1 answer

Does anyone have a Windows “at /every:” example to explain how to setup a batch file to run the first sunday of every month?

This is the one I have to run first day of the month, but I need to run it the first sunday of every month. at 13:00 /every:1 D:\DBMaintenance\MySc.bat Thanks
newby boy
2
votes
1 answer

How can I start/enable `at` on MacOSX?

I just noticed that at jobs submitted in my terminal on MacOSX are never executed: $ atq 2 Fri Feb 7 12:07:00 2014 3 Mon Feb 10 10:36:00 2014 4 Sun Mar 9 09:59:00 2014 5 Mon Mar 10 13:39:00 2014 6 Tue Jul 1 10:25:00 2014 7 Mon Jun 2…
Ztyx
  • 802
1
2 3 4