'at' reads commands from standard input or a specified file which is to be executed at a later time, using /bin/sh.
Questions tagged [at-command]
18 questions
8
votes
2 answers
How to send a notification using at command?
I have a bash script that runs periodically once a day using crontab.
The script checks a condition, and if true, it should issue an at command at a specific time.
at 14:10
The question is: how can I add a specific command like…
membersound
- 1,460
5
votes
2 answers
`at` command: what is the meaning of the option `-w`?
I have a script that uses at command. And sometimes I receiving emails as this one:
Date: Mon, 3 Jul 2017 14:18:00 +0300 (EEST)
From: root
To: root@localhost.org
Subject: Output from your job 173
Another app is currently…
pa4080
- 30,621
5
votes
1 answer
How to change the default shell of at command
when I want to delay the execution of a program using at, it precise me that
warning: commands will be executed using /bin/sh
How the change this default shell, to bash for instance ?
Covich
- 273
4
votes
1 answer
Why my 'at' clause command execute the shell immediately and ignored the time limit?
I wrote a shell named t.sh It's content is:
touch 88888
The command I'm using is
sh t.sh | at 03:13Jun15
After I execute this command, I got this show on my screen:
warning: commands will be executed using /bin/sh
job 9 at Sun Jun 15 03:13:00…
ZengJuchen
- 683
3
votes
4 answers
How to make my Ubuntu 16.04 system display a to-do reminder?
Sometimes I get interrupted while programming and would like to have some sort of alarm function that can remind me to do sometihing important.
I do not want to build a clock, nor do I want the kind of thing my smartphone does.
Just an on-screen…
SDsolar
- 3,219
3
votes
2 answers
Why can't I use bash freely after using the "At" utility? (Can't insert stdin until ctrl+c)
I ran the following code block (an at timeout to uninstall PHPmyadmin). It should be scheduled to run 2 horus ahead, but I ran it in a timeout of 2 minutes, just to test it:
bash /dev/fd/50 50<< PMA_UNINSTALL | at 'now + 2 minutes'
apt-get purge…
user423047
3
votes
1 answer
at command in ubuntu error 'You do not have permission to use at'
Apologize in advance, I am pretty new at php and ubuntu. I have 2 servers set up, one for development and one for staging. On the dev machine I can use the at command without a problem, but on staging I get a permissions error. The at.deny (and…
fredjo
- 31
3
votes
1 answer
Understanding the at-command to schedule another command
I use cron to schedule things in Linux, but recently I discovered the "at" command.
sudo apt-get install at
I don't understand the scope from which this command operates:
How would you schedule a command with at, that normally requires
admin…
Lonnie Best
- 2,244
0
votes
1 answer
See the output of a scheduled task in the terminal
Is it possible to see the outputs of tasks, that are schedule with "at" in real-time? Say, I want to see the values of my loss function as I train my network.
Alderson
- 103
0
votes
2 answers
CTRL+C doesn't help qutting "at" utility prompt. How to safely quit?
I ran the following code and when I reached the second heredoc I became stuck in an at prompt (see image below). How to safely quite from this (without braking anything)?
The code:
bash /dev/fd/40 40<< 'PMA'
cat << PMA_UNINSTALL | at 'now + 2…
user423047
0
votes
2 answers
appends n-th line from the file x at the end of the file y
I have been asked to write a command that appends the n-th line (MYN) from a file (x)to another file (y). Here's what I've done so far:
MYN=4
hey=$(awk 'NR==$MYN' x)
echo "$hey" >> y
But why doesn't this work?
Martin Yeboah
- 241
- 4
- 11
0
votes
1 answer
"At" Command on WSL (Ubuntu 20.04)
I am using WSL (ubuntu 20.04) on my machine. Today I learned about the at command, which can be used for scheduling jobs. I attempted to use it on WSL but the job was not fired although its time came.
Can't we use this command on WSL?
If we can,…
mustafabaki
- 105
0
votes
1 answer
How can I run a at command with existing environmental variables and libs?
Almost a duplicate question of this one, however, the answer in that post does not solve the environmental issue with at command.
Problem description:
I want to run my shell scripts with at command as a scheduled job. All my shell scripts run…
Albert G Lieu
- 138
0
votes
1 answer
Running pwd command by using at - at doesn't do anything
I'm trying to learn how to use the at command and to do that I tried to run the pwd command, but it seems that nothing happens:
How can I run a command like pwd by using at?
Gennaro Arguzzi
- 763
0
votes
0 answers
Why `at` can't find `mail` even if it's in every path, including the systemd unit?
I'm trying to get the logs of at, which AFAIK are sent via local mail.
The problem I'm having (on Ubuntu 20.04) is that I've configured the mail, and the PATH, but any time I execute at, the syslog reports:
Dec 30 16:45:44 mymachine atd[5799]: Exec…
Marcus
- 2,643