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

learn more… | top users | synonyms

1
vote
1answer
11 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
24 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
30 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
17 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
24 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
23 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
33 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
33 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?
14
votes
4answers
9k 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
44 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
147 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 ...
3
votes
1answer
53 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
21 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
95 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
109 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
35 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
221 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
5k 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
548 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
69 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
98 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
47 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
66 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
21k 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
109 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
1k 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
154 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
85 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
2k 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.
4
votes
3answers
1k 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
65 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 ...
2
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
496 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
44 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
145 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
985 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
406 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
322 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
92 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
0answers
59 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 ...
3
votes
3answers
289 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
576 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 ...
4
votes
1answer
720 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
2answers
621 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 ...
0
votes
1answer
182 views

My at command failed to reschedule. How can I debug this?

When using at is there a limitation on the amount of minutes to use? E.g I rescheduled programmatically via a script to run in the next 2014.989 minutes (taken from the log) but when I do atq I don't ...
1
vote
2answers
3k views

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?
2
votes
1answer
143 views

Daemons send mail when it exits

I'm not sure if daemon is the correct term but we have a number of processes (ksh scripts) that we start with the "at" command on AIX. Hopefully they run until they are told to shutdown down, at ...