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

learn more… | top users | synonyms

0
votes
0answers
42 views

More detailed output from atq on Linux

On one server its behaving like this $ atq 7948 2016-06-02 16:00 a xyz 7964 2016-06-10 16:52 a xyz 7965 2016-06-10 16:52 a xyz on another server its behaving as $ atq Rank ...
0
votes
1answer
32 views

How can I set the MAILTO variable for an at job on AIX? [closed]

I'm calling at jobs on AIX servers using this method: /usr/bin/at now +1 minute << EOF chmod 700 /var/tmp/somescript.sh cd /var/tmp sh /var/tmp/somescript.sh > 2>&1 EOF If ever some ...
3
votes
1answer
49 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
41 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
19 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 /var/run/atd....
2
votes
2answers
42 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
60 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 /bin/...
0
votes
1answer
58 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
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
197 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
37 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 ...
0
votes
1answer
33 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
58 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
33 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
75 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
40 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?
3
votes
0answers
88 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
1answer
60 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
189 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
1answer
229 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
0answers
41 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
2answers
370 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 ...
5
votes
2answers
761 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
82 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 ...
4
votes
1answer
161 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
70 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?
1
vote
2answers
122 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
202 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
106 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.
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 ...
1
vote
2answers
48 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
580 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
50 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
169 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 ...
2
votes
3answers
220 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 'include_once("/home/eamorr/open/open.ie/www/...
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
660 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
394 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
108 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 ...
2
votes
1answer
73 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 ...
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, ...
3
votes
3answers
345 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 ...
3
votes
1answer
85 views

What will at actually execute?

If I do atq I can see a list of what is scheduled via at command. But how do I see what is the command that will actually run?
1
vote
1answer
657 views

at.allow and at.deny precedence (in Ubuntu)?

It's clear from documentation about cron that if cron.allow and cron.den both exist then cron.allow takes precedence and it is allowed. What is the case for at.allow / at.deny? Everywhere I've ...
5
votes
1answer
902 views

Reset atq list to zero?

I have been using at for quite a while now, and I noticed that the at job ids seem to increment forever. $ atq 332 Mon Sep 23 17:25:00 2013 a cklein $ # I'm up to 332 at jobs! Interestingly, at ...
4
votes
3answers
717 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 ...