Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [at]

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

1
vote
1answer
31 views

How do I get the prompt back when running `at' from terminal

Perhaps this is more of a general question on scripting and terminal use than of the use of the `at' command. Regardless, I am exploring the use of the at command to get a handle on its behavior and ...
0
votes
1answer
33 views

Linux “At” Job Executes Immediately

I have a PHP web application that schedules Linux "at" jobs using the PHP function exec(). The scheduled task is another PHP script. Somehow, under certain conditions that I suspect are related to ...
0
votes
1answer
48 views

Running script using at command doesn't work entirely

So I did a bash script that read a file in which are directory numbers and then proceeds to run pgloader over them. I looks like this #create logs for pgloader Date=`date +%Y_%m_%d` LOGS="...
0
votes
1answer
59 views

Why would it not be a good idea to schedule a shutdown with cron?

In an answer to the question How to shutdown Linux at a specific datetime from terminal? a high-rep user provides two solutions: using at and using cron. The cron-based option says "this not a good ...
1
vote
4answers
361 views

Temporarily declare a variable in Bash

To declare a variable in Bash, say in a Bash script-file (that doesn't include Bash function), I do for example x=y and when I finish using it inside that script-file I do unset x. Is there a way (...
0
votes
1answer
34 views

Email sent to root: “Output from from your job 1843” - “Killed”

I run a Sheevaplug (small ARM server) with Debian 9. It does not have any third-party repos enabled in sources.list / sources.list.d. I have a backup script which runs as root, and uses at. I think ...
-1
votes
1answer
27 views

atrm pending tasks using pipeline [duplicate]

I have a few tasks in the pending at job queue, $ atq 28 Wed Oct 31 10:23:00 2018 27 Tue Oct 30 21:20:00 2018 25 Tue Oct 30 21:19:00 2018 26 Tue Oct 30 21:20:00 2018 20 Tue Oct 30 18:25:00 2018 ...
0
votes
1answer
161 views

Making “at” work on macOS

I am working on a CentOS server and schedule a task with command at # echo "touch a_long_file_name_file.txt" | at now + 1 minute job 2 at Wed Oct 31 13:52:00 2018 One minute later, # ls | grep ...
0
votes
0answers
34 views

command `atq` demonstrate couple of tasks days ago [duplicate]

When I review the queue by command atq $ atq 28 Wed Oct 31 10:23:00 2018 27 Tue Oct 30 21:20:00 2018 25 Tue Oct 30 21:19:00 2018 29 Wed Oct 31 10:42:00 2018 26 Tue Oct 30 21:20:00 2018 20 Tue ...
3
votes
2answers
185 views

Remove jobs from at queue on a specified date

I have a series of pending jobs in the queue, $ atq 8 Mon Oct 29 13:21:00 2018 5 Mon Oct 29 10:36:00 2018 15 Mon Oct 29 13:31:00 2018 4 Mon Oct 29 10:35:00 2018 18 Mon Oct 29 15:55:00 2018 3 ...
1
vote
1answer
152 views

Schedule a command to execute minutes later [closed]

I tried to schedule a command to execute 2 minutes later at -c "ls -l" now + 2 minutes It fails with multiple ways $ echo "open 'Google Chrome' " | at now + 2 minutes job 15 at Mon Oct 29 13:31:42 ...
0
votes
1answer
41 views

Using 'at' and 'systemctl' commands together

I'm trying to schedule shutdown of PC using at command like this: echo "systemctl poweroff" | at -M now +1 minute or like this: echo "sudo systemctl poweroff" | at -M now +1 minute but nothing ...
0
votes
1answer
26 views

at job terminates almost immediately

I have a bash script, /home/x/bin/asdf, (which fires up a bunch of JVMs, piped together), and that works fine, when running directly from the command line like /home/x/bin/asdf However, when trying ...
1
vote
0answers
31 views

Set Sierra modem to packet switching via AT Command using ubuntu live CD

Lifebook E5440 has WWAN Modem Sierra EM8805 Multi SIM - Phone is occupied when Notebook is online i know this problem from lenovo notebooks Win10 doesnt let me set the config cause there is no com ...
30
votes
2answers
4k views

What is the difference between shutdown 18:00 and at 18:00 shutdown?

at 18:00 shutdown now and shutdown 18:00 , are they starting the same service? Do they work the same way?
2
votes
1answer
338 views

Shutdown, suspend require authentication when scheduled in at

I'd like to suspend my laptop using at: echo "systemctl suspend" | at now + 5 minutes Suspension does not happen, instead I find a mail from at in /var/spool/mail/me: Failed to set wall message, ...
0
votes
0answers
217 views

How to configure Telit LE910-NAG serial ports to use them with cat?

We are using the 3G modem Telit LE910-NAG (I'm aware that it is not recommended for new development but for now I cannot change it). I’m using it on a Linux OpenWRT platform. I followed the direction ...
-3
votes
1answer
41 views

Remove all scheduled before 17:00 jobs with atrm [closed]

I need a shell script that removes all scheduled before 17:00 jobs with the user name as a positional parameter This is what I tried to do #!/bin/bash currentTime = ‘date + %k%M’ check_time_tu_run() {...
3
votes
2answers
101 views

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

At utility problem with echo “command” | at +[#][time-unit]

I desire to run a particular task 2 hours ahead from now. In Bash 4.3 in Ubuntu 16.04 I executed: tdm() { chmod -R a-x,a=rX,u+w "$drt"/phpmyadmin/ echo "chmod -R 000 "$drt"/phpmyadmin/" | at ...
-1
votes
1answer
88 views

how to specify precise date to atd

I found some examples here: http://www.thegeekstuff.com/2010/06/at-atq-atrm-batch-command-examples But how can I create at job with specific time that contains minutes, seconds and even year, like "...
18
votes
1answer
899 views

Does `at` run a command later if the computer is off at the specified time?

I want to schedule jobs with at, but I'm not sure what happens if the computer is suspended at the specified time: Will the command be executed as soon as the computer wakes up again (like with ...
1
vote
0answers
32 views

Differences between command line and scheduled execution with `at` causing unresponsive Chrome

I have a python script which controls Google Chrome via selenium and chromedriver. It runs perfectly from the command line. When I schedule it using at, Chrome is successfully started, it opens up on ...
12
votes
6answers
1k views

at some time from now do something (and maybe also show result in console)

I use Ubuntu server 16.04 and I desire to use the utility at in my current session to do something 1 minute from now (say, an echo), without giving a specific date and time - just 1 minute ahead from ...
1
vote
1answer
71 views

How do I use `at` to schedule a script to execute on macOS?

I've written a Python script that I need to execute at a certain time after another script runs. I found the at command, and after a bit of digging, I tried the following (broken into multiple lines ...
1
vote
1answer
31 views

Start playing a video at a certain time

I want to play a video at a certain time. Like an alarm. for instance, at 07:00 play video.mp4 I have tried this with crontab and with at, but no success yet
3
votes
1answer
163 views

Why does atq not list jobs in either queue order, or chronological order?

sudo atq 7 Wed Nov 15 13:46:00 2017 a root 6 Sun Oct 15 13:45:00 2017 a root 8 Fri Dec 15 13:46:00 2017 a root 9 Mon Jan 15 13:47:00 2018 a root Why would running atq not list the jobs either ...
1
vote
1answer
1k views

Repeat a task with the “at” command everyday at 6PM

I want to repeat a task every day at 6PM. I know this command executes a task at the next 6PM: echo "ls -l" | at 18:00 I tried to RTFM but didn't find anything relevant to repeating said task. ...
3
votes
1answer
475 views

Will 'at' command be executed after the reboot? [duplicate]

If I schedule something with 'at` like, $ at noon warning: commands will be executed using /bin/sh at> echo "Will I be created?" > /tmp/at_test at> <EOT> job 12 at Fri Jun 30 12:00:00 ...
0
votes
1answer
913 views

C++ system() on bash script with at executes differently

C++ script, compiled with g++ -std=c++11 #include <iostream> int main() { system("./temp.bash"); } Bash script TIME="now +1 minutes" STRING="Output File Test 7 ...
0
votes
1answer
185 views

Using the 'at' command

This part of my script outputs at: garbled time for every index in the loop, where showRestNotification is a function defined previous to this call for i in {0..5} do at ${sleepTimes[$i]} -f ...
0
votes
1answer
238 views

How to show a at scheduled command? [duplicate]

Say I want to have a beep at 13:00. I would use speaker-test -t sine -f 1300 | at 13:00 I can find that something is going to be executed with atq but how to get the precise scheduled command? (that ...
1
vote
1answer
36 views

It is possible to schedule tasks with at and pass the current time as a parameter with some operations

In GNU / Linux I can use the at command, among others, to schedule tasks something like this: # at 07:07 warning: commands will be executed using /bin/sh at> To run the task at> <EOT> ...
0
votes
0answers
78 views

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

help 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. Can ...
0
votes
1answer
434 views

exit the prompt by `at` command

I want to set a cron at a specific time and I am using at for that. However at puts you in a special prompt. Is there a way I can exit the prompt in my code without having to use CTRL + D?
1
vote
2answers
63 views

how to properly schedule a task that schedules a task with 'at' (atd) ? or how to properly quote/escape in bash

I am looking for a way to create a command line using 'at' (atd) to schedule a task, that schedules a task to do "more stuff" after a reboot (one time task). What I am looking for right now is a way ...
2
votes
1answer
639 views

How to reschedule an at job to run earlier?

Suppose I had scheduled an at job to run 3 hours later: $ echo command | at now +3 hours $ atq 9 Mon Dec 5 14:00:00 2016 a nr but having passed 1 hour I change my mind, and then need to run ...
0
votes
1answer
32 views

Does my scheduled task using “at” command run if I am logged out?

I knew cron still runs, but how about at? Checked with man at, but it didn't mention it.
1
vote
2answers
514 views

Is it possible to specify an at command on a single line?

I'd like to schedule 8 curl commands over the next 12 hours. I was wondering if there's a way to do with with 8 single-line calls to at. Sorta like: $ at now + 1 min "curl -X POST 'http://localhost:...
1
vote
2answers
1k views

Can “at” command execute any kind of shell script?

I created a java program that showed a message dialog. After pressing OK it is closed and the program execution ends. Then I created a shell script alarm.sh that executed the program. I tested it and ...
-2
votes
1answer
5k views

at command not found [closed]

Following on from Cron job for 7 days alone not followed by multiple weeks, I am trying to use at but it shows at: command not found. By default it seems that Red Hat Enterprise Linux Server release ...
7
votes
0answers
2k views

how do I send mutt postponed mail at a later time?

I don't like waking up early but people prefer to be emailed in the mornign rather than at 3AM. Therefore I often use at to send the email whilst I'm asleep. But that comes with the complication ...
1
vote
1answer
127 views

How to end a script submitted by “at” starting new processes?

I started a script on a server using "at": at now < script.sh My problem is, that the script repeatedly starts new processes. Is it possible to stop the whole script instead of killing the ...
2
votes
3answers
246 views

Creating queues of tasks at points of time

Does UNIX offer any way of creating queues that start regularly at a particular time, at then lets you gradually add a number of tasks to that queue that will be run sequentially at that time? I know ...
0
votes
1answer
265 views

Removing the warning message that pops up when using an at command [duplicate]

I was using an at command in my bash profile to echo the time of day at every hour to remind me of the time but now when I open up the command line it flashes a lot of annoying warning like these: ...
0
votes
0answers
107 views

remove or change at command bcc setting

When I run a command with at on my Debian server, it is correctly sending the email to my user which I have forwarded to my gmail address, but it's also adding a BCC to drew@sokar (my.username@...
5
votes
3answers
928 views

atd, batch // Setting the load limiting factor

I am launching non interactive jobs using batch, and I would like to increase the load limiting factor in order to use all 8 of my cores. I am on Ubuntu 16.04 LTS. From what I understand, batch uses ...
0
votes
3answers
757 views

How to configure 'at' and 'sendmail' to mail output with Content-Type: text/html

I am upgrading some batch programs to produce html output rather than text. The batch programs are run with the at command, which in turn sends all output to the user using the sendmail command. ...
0
votes
1answer
471 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 ...