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

learn more… | top users | synonyms

4
votes
3answers
696 views

How and where is the at command configured?

When I install a new Linux system, one of my first tasks is to have crontab send all its email to a designated email address, not root. I want to do the same for the at command. That is I would like ...
1
vote
1answer
36 views

How to disable mailed output for an at job?

I'd like to disable at mail notifications for a certain class of jobs. For example, when testing the use case below (killing an at job midstream) I don't want output, but the same code in production I ...
1
vote
2answers
38 views

How do I get my arrow keys working in the at> prompt

Whenever I try to use the arrow keys in the at> prompt (after, for example, running at now) it just shows control codes, eg. ^[[D for ←. This makes pasting and editing long commands difficult ...
0
votes
1answer
14 views

atd dead but subsys locked

After I killed the atd process by hand (sudo kill <PID>), I can no longer start at jobs: [vagrant@localhost ~]$ echo ls | at 'now + 1 minute' job 6 at 2016-05-09 20:17 Can't open ...
2
votes
2answers
39 views

The at command suddenly/randomly executes jobs

The at command has a strange behaviour, and I can't find why. Story - In 3 days, I'll need to send emails at specific times to make a surprise to someone. I won't be able to monitor if everything is ...
1
vote
2answers
57 views

at now - different date

This is my current system date root@48392:/home/# date Mon Apr 25 19:08:13 CEST 2016 Now I set up an at job... root@48392:/home/# echo "ls" | at now warning: commands will be executed using ...
2
votes
1answer
69 views

at and daylight saving time

Suppose I have added a task via at -t specifying the next day in my timezone. The next day my timezone changes as of daylight saving time. The question is whether the task will be executed correctly ...
0
votes
1answer
47 views

How to “at now” on FreeBSD?

Is there a way to run at immediately on FreeBSD? On Ubuntu, when I run a script with "at now" it runs immediately. With FreeBSD, there is a delay because at is running through crontab. Default is 5m. ...
1
vote
1answer
215 views

How can I see history of the “at” command in AIX?

I'm experiencing a strange problem where occasionally the at command appears to not be running the command I've configured it to run. For example: at -t 201510071042 runsomescript <Ctrl-D> ...
1
vote
1answer
15 views

Stopping one particular command scheduled by at command except others

I am scheduling, say, 3 commands using at command. $ at teatime command1 command2 command3 <Ctrl + D> After some time I realised that running command3 is not really what I wanted, but at ...
0
votes
1answer
144 views

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?
0
votes
2answers
36 views

What does the -b option do when using the `at` command, if anything?

According to man at, one of the ways to call at (version 3.1.10 on my system) is with the form: at [-V] [-q queue] [-f file] [-mldbv] time Although -m, -l, -d, and -v are all documented, nowhere ...
8
votes
3answers
1k views

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 ...
0
votes
1answer
27 views

Get PID of scheduled job (using at)?

Say I want to schdule this job to be run at later time MYPROGRAM > output.out 2> error.err | at 02:00 PM Mon How can I attain its PID? surly using: echo $! will not work?
2
votes
1answer
52 views

Run at command when computer is sleeping

I want to schedule a job using at command, but my laptop may have gone to sleep by that time. So the question is will that command will be executed? If yes, how? I mean will my computer will wake and ...
3
votes
1answer
29 views

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 ?
0
votes
1answer
62 views

Schedule a job to run in the background ( one time task scheduling using at )

Is it possible to request for a job to be run at a later specifed time in the background? This is what I have so far, nohup nice MY_PROGRAM > foo.out 2> foo.err < /dev/null | at 05:23 PM ...
1
vote
1answer
39 views

Remove all `at` jobs on boot

Is there a way to delete all unfinished jobs on boot? I tried atrm $(atq | cut -f1) which works perfectly on command line, but it doesn't work on boot. Any ideas?
16
votes
4answers
11k views

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?
3
votes
0answers
76 views

“at” jobs stuck?

I have a system that uses the at command to schedule simple commands to be executed later. The command in question uses a lock so that multiple commands started at the same time execute sequentially ...
2
votes
3answers
191 views

Run at command in two minutes time

I'm trying to perform a one-liner using at. Basically, I want to send an SMS at some point in the future. Here's my command to send an SMS: php -r ...
2
votes
1answer
58 views

How can I get at to work on OSX?

My at on Mac OS X 10.11 seems to be incapable of launching jobs. I tried: echo "date > foo" | at now Running atq afterwards shows the job queued and no file foo was created. To make sure the ...
0
votes
0answers
22 views

Rebooting Ubuntu if necessary

My Ubuntu needs sometimes rebooting if it has downloaded upgrades. Can I automate it like do reboot if it is required and there is no unsaved works and I'm sleeping (say for example 3 am)?
2
votes
1answer
170 views

mutt send mail from command line, with headers inside text file

Can mutt send mail from command line without command line parameters, with subject, cc, bcc, reply-to, in-reply-to all defined inside mail.txt file with body of the message too (the same file format ...
1
vote
0answers
39 views

How to override email address used by at command

cron has MAILTO setting to explicitly configure the email address that will receive the report Does at have anything of the kind? Man page says it will send using /usr/sbin/sendmail but which ...
2
votes
1answer
343 views

“at” (batch) job + dialog = nothing

The goal: to be able to get an "infobox" to open in a terminal after some time; alarm clock style, (on a Debian derived linux box). However: > at now + 3 min dialog --infobox "Time to attend to ...
9
votes
4answers
6k views

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. ...
5
votes
2answers
719 views

Can you execute a Bash function with the `at` command?

I want to execute a Bash function at a scheduled time. I think the right tool for this is the at command. However, it doesn't seem to be working. function stupid () { date } export -f stupid ...
0
votes
1answer
74 views

How to skip email notification for at command in AIX?

(AIX 6.1 ) man page for at says -m option could send an email to the user. But this is the default behavior, even without specifying the -m option. Is there a way to turn this off, I do not want mails ...
3
votes
1answer
143 views

How can I see previous `at` jobs?

I can use atq to see pending at jobs, but is there any way to see info about at jobs that have already finished, either logs or just confirmation that they were scheduled and executed?
1
vote
1answer
64 views

How do I get the filename and job numer of an “at” job

We have a script (generator) that is creating a series of at jobs. The at jobs fire another PHP script. The generator script loops through and does something like this: exec('/usr/bin/at 5:00 May 11, ...
1
vote
2answers
70 views

Remove all 'at' Jobs except first five jobs

I want to keep only first five scheduled jobs (as in the lowest 5 job ID numbers) and remove the rest of the scheduled atq jobs. How to can I do this?
26
votes
5answers
25k views

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, ...
1
vote
2answers
120 views

Can brace expansion be performed within the `at` command?

In bash, brace expansion is performed as a shell operation before executing the command.1 This means the following will work: echo {1..10} >output | at -m now The output will be 1 2 3 4 5 6 7 8 9 ...
11
votes
1answer
2k views

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 ...
0
votes
0answers
194 views

Bash script not executing when called from another start with “at command”

First, I understand this is probably something better suited for cron. However, I don't have access to cron. (shop rule around here) So, I am using the next best scheduling option at my disposal. ...
2
votes
1answer
101 views

Remove created file after x minutes

I have a directory /my/path/tmpimages. Whenever a file is copied/created there, add a timer that remove that file after x minutes. What I found is that I need to use inoticoming or incrond to watch ...
2
votes
1answer
3k views

How to execute recurring Bash script at specific times?

How would I set a script to execute on every Tuesday and Thursday at 11:50am? I've been looking at the at command, but I can't conceive how to use it the way I need to from its man page.
5
votes
3answers
2k views

How to pass arguments to bash shell script when executing that command with at?

I have a shell script that accepts an argument and uses that in the script. So to run the script I type /path/to/script argument The problem is when trying to setup that file to run using the at ...
1
vote
1answer
67 views

What is making “at” in AIX add a “cd /some/path/here” prior to my explicit commands?

When I execute the following command: cd /some/path/here at -t 201409301100 ls -al <CTRL-D> at -lov I get the following output: ======================== myusername.1411755840.a Mon Sep 30 ...
4
votes
2answers
3k views

How to install and use at job scheduling?

I am not clear on the following: Is the process for at available to all linux installations? Or do would I need to do something to "install" it?
1
vote
2answers
47 views

How do I make “at”-tasks repeat at a specific time?

I want to schedule a script to run every Monday at 9am. How can I do this? I can only find examples for given days, not repeating things with at. Cron is not a solution.
4
votes
3answers
561 views

at job seems to be running using /bin/sh though I have a #!/bin/bash

I am trying to run a job using at, and I have a bash script (I do have #!/bin/bash as the first line), but the job fails because of use of [[ and ]] in the script, I see the following in the mail that ...
3
votes
1answer
46 views

X commands do not start from my at job

I'm learning about Linux scheduling commands including at, cron, sleep etc. I'm trying to launch gedit after x minutes via the at command. This is what I have: kedar@i5 ~ $ at now + 1 minute at now + ...
0
votes
2answers
162 views

`cron` service and `at` command

Help to understand: is there any relation between cron and at command. Actually if I stop the cron services in SUSE by running following command: /etc/init.d/cron stop after above, if I run at ...
4
votes
2answers
1k views

Schedule job at irregular intervals

It's simple enough to use cron to schedule a job to occur periodically. I'd like to have something occur less regularly -- say, run the job, then wait 2 to 12 hours before trying again. (Any ...
2
votes
2answers
611 views

Are logs kept for past at jobs?

I ran a few jobs with at command and, if possible, I want to see which commands I ran in what directories. I work with Linux Mint 16 if this is relevant.
1
vote
1answer
382 views

Kill all queued jobs

I need to kill all the queued and running jobs on my ID. I have tried at -l | awk '{print $1}'| at -r {} But I keep getting {} does not exist Which leads me to believe that I am parsing ...
3
votes
1answer
101 views

Is it possible to use the at command to schedule a job to run at a given timestamp?

I want to schedule a file to run using the at command, as described in this tutorial. I see that the at command supports the posix format -- but I don't see any mention of timestamps. Surely it is ...
3
votes
3answers
328 views

stopping atd job at specified time

I'm trying to schedule download at nights. I have created a atd job which starts download script at 2 AM. Now I want to stop the same job at 7 AM if it is still running. What I'm doing now is just ...