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)

174 questions
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
6
votes
3 answers

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…
Eamorr
  • 163
5
votes
1 answer

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 doesn't seem to keep around data about completed…
Cory Klein
  • 18,911
3
votes
2 answers

Run scheduled at job now

Say I schedule a job to be run in a few days using at. And say in a few hours I think, "you know, I want that command to run now". Is there a simple way to just run that scheduled job now, instead of later? I'm aware I could simply atrm it and run…
2
votes
2 answers

at jobs: queue IDs and job files

root@calleva:/var/spool/cron/atjobs# echo "sleep 3000" | at 20:58 warning: commands will be executed using /bin/sh job 161 at Sat Jun 3 20:58:00 2023 root@calleva:/var/spool/cron/atjobs# ls a000a101acba0e root@calleva:/var/spool/cron/atjobs# cat…
2
votes
2 answers

show command details with at

I am very new to using at and am wondering how to display the command by a scheduled job. postgres@dcjsn-jv2526:/opt/db/backup/postgres/dumps> atq 29 Wed Nov 2 18:55:00 2022 a postgres I see there is a job 29 scheduled for a certain time by a…
vrms
  • 139
2
votes
2 answers

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 running correctly, because I'll be in a plane for…
2
votes
1 answer

Stopping one particular command scheduled by at command except others

I am scheduling, say, 3 commands using at command. $ at teatime command1 command2 command3 After some time I realised that running command3 is not really what I wanted, but at same time I don't want remaining commands to stopped from…
Alex Jones
  • 6,353
1
vote
2 answers

Why does `at` not execute GUI applications?

On my Ubuntu 20 desktop, I've scheduled gedit to run a minute from now, but nothing happens. Why is that? $ echo "echo foo > at.sux" | at now + 1 warning: commands will be executed using /bin/sh job 8 at Tue Jun 2 21:47:00 2020 $ echo `which…
1
vote
0 answers

How to specify the subject of an `at` job

The man page for at says : The user will be mailed standard error and standard output from his commands, if any. Mail will be sent using the command /usr/sbin/sendmail. This is working fine, but the subject line in the emails is generic: Subject:…
user12810
1
vote
2 answers

Understanding the behaviour of at + x minutes

When I run echo "hello" | at now + 7 minutes I get the following output - job 2 at 2016-12-11 05:06 However when I use bash txt | at now + 7 minutes It starts executing immediately.
1
vote
2 answers

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?
KK Patel
  • 1,855
0
votes
3 answers

How does at behave when going off the end of a month with a relative date?

When using at midnight next month and it is the 31 of January, how will it behave? Will it be the 4th of March or 28 of February? or the 31 of March?
0
votes
2 answers

Delete file at specified time non-interactively

I have a script that when executed generates a temp file that i want deleted 10 minutes after the script completes. I have looked at the "at" command which does what I need, but it requires interactive input. Is there any way to do this…
Karim
  • 3
0
votes
1 answer

atd Job Didn't Run at Scheduled Time

I scheduled a one-time job with atd on an OracleLinux 7 server. However, it's still in the queue after the system clock has passed the scheduled time. # atq 2 Mon Mar 14 00:00:00 2022 a root # date Mon Mar 14 09:38:15 NZDT 2022 The atd…
NeilWang
  • 272
1
2