A command line utility used for scheduling an event to happen once at some point in the future.
Questions tagged [at-utility]
8 questions
1
vote
0 answers
How to fix this error on Mac when running "at" command?
I have a mac that is running MAMP and on a web page I am trying to run the exec() php command below.
$output = array();
$result_code = 0;
$command = "echo /Applications/MAMP/bin/php/php7.4.21/bin/php -q " . DOCUMENT_ROOT .…

karozans
- 53
- 7
1
vote
1 answer
`at` only runs when I add a new job
As the title says, I'm having a weird behaviour with at:
It put my jobs on queue, and run then correctly, but only after another job is scheduled:
This is the situation, when I add ad new job then job 17 gets executed.
atd service is running fine.…

Santiago
- 361
- 4
- 21
1
vote
0 answers
shell variable $? not working inside in an at heredoc
ubuntu 18.04
I need to get the value of the last command executed in an at heredoc :
test.at.sh
#!/bin/bash
at now <> test.log;
RET=$?;
echo -e "\n----" >> test.log;
echo "exit code $RET" >> test.log;
EOF
I get in test.log only "exit…

razvan
- 51
- 1
- 6
0
votes
1 answer
Raspberry Pi OS - at command does nothing
I have a Pi 3B+ with Pi OS (PRETTY_NAME="Raspbian GNU/Linux 10 (buster)")
I want to run a script at a certain time, using at command.
For testing purposes i have made a test1.sh, to open Chromium browser using pyautogui.
This file is located in…

zuputoddu
- 11
- 3
0
votes
1 answer
at job scheduler doesn't work on my Ubuntu
I know there are many linux experts here, I wish to get little help with at command in Ubuntu.
I have been troubled by at command in ubuntu (18.04 and 20.04) for quite a while, but I don't know where I made a mistake. I've tried at on three of my…

Albert G Lieu
- 891
- 8
- 16
0
votes
1 answer
How to use ssh to schedule an 'at' job or a 'cron job' on a linux server from a python program on Windows client
I am attempting to schedule a job to run on a linux server from a python app on Windows 10 by using os.system(). The following code executes but fails to schedule the job.
os.system('ssh myadmin@mnop.com "at 09:00 {}".format("iostat >…

jlar
- 11
0
votes
1 answer
Commands Not Executing When Using At Command
I have a very simple bash script written,
#!/bin/bash
echo "python /home/user1/Downloads/program.py" | at 10:00
but it doesn't execute. All of the jobs seem unexecuted because when I run atq (at queue) I see all the attempts I have made.
I…

El Gallo Negro
- 1
- 1
0
votes
2 answers
Schedule a script with at command
I have written a script and I want to schedule it to run at a certain time with the at command. I also want to use an argument in order to pass the time I want in the script so it can be executed at a specific time.
The script's name is displaydir…

user08
- 21
- 1
- 1
- 6