Questions tagged [at]

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

Filter by
Sorted by
Tagged with
0
votes
2answers
40 views

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

I have a bash script needs run at a specific time and found out at is pretty much does what I need to do. But the problem is I'm not sure how can I pass command line arguments to the bash script ...
0
votes
1answer
26 views

Can i access the environment variables set when a script is added to linux “at” command queue?

I wanted to know if I can access the custom env variables that are set while adding a script to the "at" command queue before it runs ? I understand that certain system env variables like: TERM, ...
0
votes
0answers
37 views

How to force execution of “at” job

I'm using the at command to schedule a "update process" who cannot be launched from my service to prevent the association of the service process with my update process, because my update process will ...
1
vote
0answers
76 views

Schedule command to run at specific timestamp with systemd

I would like to schedule a command to be run at a specific time, identified by a Unix timestamp. It seems like this might be doable with systemd, using systemd-run, but how would that work? And what ...
12
votes
1answer
1k views

How does `at` know there will be a time change?

I happened to be twiddling around with at just yesterday at 2:40 AM. (Don't ask...) I tried scheduling events one minute in the future (as a test), and – it just didn't happen. The events were in the ...
0
votes
0answers
26 views

How to correctly use Linux “at” command to execute a shell script that runs a matlab script?

I have the following shell script: #!/bin/bash matlab -nodisplay -nosplash -nodesktop -r "run('/home/username/test.m');exit;" The test.m script is a matlab script that plots a graph and saves the ...
0
votes
0answers
21 views

At -q not queuing

I am using Ubuntu server. I have the following at command: at -q a now I expected that the -q a would cause the commands to run sequentially, but they are not. On inspection with atq they are all ...
0
votes
0answers
12 views

How clear 'at' queue? [duplicate]

The 'at' command maintains a queue that can be viewed via 'atq'. One can also remove individual jobs from the queue via 'atrm'. But is there a way to remove all the jobs from the queue with a single ...
0
votes
1answer
45 views

Need an “at” Command Timestamp That Runs Command Monthly at Given Day

Need an at command timestamp that run some command at given day monthly, like for example, every day 15, as would follow: $ at every 15 day So that on every day 15, it would run some command. How ...
3
votes
2answers
52 views

How can I schedule an command with `at` which requires `Eth0` interface to up and running?

Need here to schedule some email sending at some date with at command, but need first to ensure that Eth0 interface is up and running. How could I do that? Currently using Mutt Mail User Agent ...
1
vote
1answer
65 views

Editing a job in At command

Trying here to modify a job from at command. Any idea on how to do it? Already managed to list it, delete, and execute, but can't modify it.
0
votes
0answers
86 views

OSX: at requires GUI confirmation

I did as per the instructions in Making "at" work on macOS (see also SuperUser) launchctl load -w /System/Library/LaunchDaemons/com.apple.atrun.plist to enable at on macos and now echo '...
1
vote
1answer
85 views

Why does Debian run “atd” as the “daemon” user?

$ ps -aux|grep atd daemon 800 0.0 0.1 27964 2228 ? Ss 19:11 0:00 /usr/sbin/atd -f alan-sy+ 7042 0.0 0.0 12780 948 pts/0 S+ 20:22 0:00 grep atd $ /sbin/getpcaps 800 ...
0
votes
0answers
51 views

How to install scheduler command “at” in BusyBox?

I have BusyBox on Termux app for Android, but the cron that has installed doesn't seem to work, then I want to try another scheduler command like at but when I try to install it is not located. $ apt-...
1
vote
1answer
63 views

Is it possible to get the history of commands run with “at”? [duplicate]

I think the title says it. I would like to retrieve the history of commands run a few days ago with at to double check some error we got on an import process.
-1
votes
2answers
41 views

at not executing scheduled command - troubleshooting

I am writing this bash script, that will read a file containing a date, a time and a phone number, and it will use an SMS provider API to send an sms reminder. #!/bin/bash while read date time phone ...
2
votes
1answer
138 views

What timezone does the `at` command use?

I've searched in the man pages for the at command there are no mentions of timezone or tz. There is this: The exact definition of the time specification can be found in  /usr/share/doc/at-3.1.10/...
3
votes
2answers
319 views

specify a time interval in which to execute a certain script

I have this bash script: while [[ 1 ]] ; do sleep 3600 ; ./notify.sh --text "ricordati di bere" && play /mnt/musica/login.wav && zenity --info --text="<span size=\"xx-large\">...
1
vote
1answer
112 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
73 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
257 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
74 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
1k 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
62 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
48 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
442 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
38 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
313 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
463 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
59 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
28 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
52 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
759 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, ...
-3
votes
1answer
51 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
186 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
295 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
183 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 "...
20
votes
1answer
947 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
34 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
2k 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
126 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
40 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
248 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
2k 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
790 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
1k 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
270 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
395 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
43 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> ...