Questions tagged [at]

`at` is a Unix command that can be used to run other commands at a specified time.

Filter by
Sorted by
Tagged with
3 votes
1 answer
334 views

Command scheduled with `at` fails but gives no error

I recently learned about the at command in Unix system. Let's say I want a Python script (that might crash) to run 2 hours after I launch it. I do something like this: $ echo python3 my_script.py | at ...
isaac's user avatar
  • 31
0 votes
1 answer
262 views

How do I schedule an app to launch on Linux?

How would I launch a graphical application, like firefox or gnome-calculator, at a certain time. at does not work for this; i.e. echo "firefox" | at now does not launch firefox. Cron might ...
Jonathan Strange's user avatar
0 votes
1 answer
511 views

What does " /bin/sh <$(tty) >$(tty) 2>$(tty) " mean?

I was looking at the GTFOBINS page for the at command and saw this command (last command in that page) echo "/bin/sh <$(tty) >$(tty) 2>$(tty)" | sudo at now; tail -f /dev/null for ...
randomSapien's user avatar
0 votes
1 answer
274 views

BigSur: at: Operation not permitted

How would I fix this on macOS 11 $ at 0200 at: cannot open lockfile /usr/lib/cron/jobs/.lockfile: Operation not permitted This started to happen after accidentally dismissing an incessant prompt ...
user3544438's user avatar
0 votes
1 answer
185 views

How to run `say` at a specified time with `at` on macOS?

Running echo "say hello" | at now+1 on macOS should enqueue a task to be executed one minute in the future: saying hello. Issuing say hello works fine, as does echo "touch a-file" |...
Jonathan Ginsburg's user avatar
7 votes
1 answer
684 views

MacOS - "at" command is not working

I've started the atrun daemon using the following command. $ sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.atrun.plist Added my username to /var/at/at.allow file. $ cat /var/at/at....
pkgajulapalli's user avatar
1 vote
1 answer
155 views

Do any linux systems depend on at (atd) for system functionality? I want to disable it

I have a cubieboard (an SBC, like a raspberry pi) that I'm using in an embedded application. While testing a box before shipping I noted unacceptable lag in the user interface. Investigation turned ...
msouth's user avatar
  • 125
1 vote
1 answer
280 views

scheduling job with at specifying timezone - "refusing to create job destined in the past"

I'm trying to specify a timezone for at so I can use it in a bash script and not have to worry about adjusting it twice a year, and getting this error: at: refusing to create job destined in the past ...
William Turrell's user avatar
0 votes
1 answer
607 views

Ubuntu: Running a GUI application using the at command

How can I run an app showing a GUI (e.g. Chrome, Spotify etc.) at a specified time using the at command? Just doing echo "/path/to/spotify" | at now doesn't work. Edit: I also tried echo &...
Michael Litvin's user avatar
1 vote
1 answer
392 views

'at' command not working in arch linux

When I schedule a task using at in Arch Linux it doesn't get executed when its time to but it does get removed from the queue. Here is an example of me scheduling a task. at now + 2 min warning: ...
Mayank Shigaonker's user avatar
0 votes
1 answer
237 views

notify-send Works From Shell Session, Not From Script

I am using at in coordination with notify-send/dunst as a form of reminders for myself. In an interactive bash session, doing: $ echo 'notify-send "Test"' | at 12:45PM works just fine and I see the ...
ThoseKind's user avatar
  • 105
2 votes
2 answers
112 views

Schedule a job with at command

Hello 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 ...
user25's user avatar
  • 31
0 votes
0 answers
99 views

DOS at command scheduling

I wanted to make a schedule that runs a (backupping) .bat program using at command on startup. If it isn't possible, then at 5 PM sunday.
Ecofg's user avatar
  • 1
7 votes
1 answer
283 views

'at' command intended behaviour? Launching each commands instead of scheduling

I'm trying to schedule the execution of some programs. I'm using this command: ./tests.o | at 15:00& If I understood correctly, the intended behaviour was to delay execution until 15:00. However ...
Mick Hardins's user avatar
2 votes
0 answers
454 views

The 'say' command is not working with the 'at' command

I'm running macOS 10.13.5, and I want the Mac to say something, such as the current time, with the at command for the specified time. I have already loaded the atrun daemon, and the following command ...
Holmes Conan's user avatar
0 votes
1 answer
56 views

Evaluate date at "at" command scheduled time

I use a script file to run some tasks using the AT command, but in the log file the date echoed is the date when I set up AT command not the execution date. What can I do to display the actual time ...
Ould Abba's user avatar
  • 201
0 votes
1 answer
2k views

How to run a periodic scheduled job without at or cron

Scenario: You have a user with no access to cron and need to schedule a job (say an rsync of a directory). The use of at is not an option as you don't have a fixed end date. While I bet there are ...
runlevel0's user avatar
  • 952
0 votes
0 answers
100 views

atd creating processes with low priority

I'm queuing up some long-running PHP processes in atd to be run at a later time. However, when atd fires up the process for the task, it keeps creating the tasks as low priority. I come back to find ...
Jamesking56's user avatar
8 votes
2 answers
425 views

Peek at `at` output before it completes

Let's say I run a script with at on Linux (example below) that I know is going to take several hours, or maybe even multiple days. I'm accustomed to at sending an email with the output of the command ...
Drew Chapin's user avatar
  • 5,900
0 votes
1 answer
932 views

how to see the output of a cron/at jobs while it is still running?

The output of a cron or atq job is automatically send by email to the user, when the job is finished. However I am running a time consuming script, and I would like to check that it is running ...
user13003's user avatar
  • 151
0 votes
1 answer
258 views

Shell Script excuted fail in Linux at command

When I run a Linux "at" command,I find the user's shell script executed fail, for example,I write the following code in my script #!/bin/csh #or #!/bin/bash echo "Now will excute a shell script" ...
Liuwei.Shi's user avatar
1 vote
1 answer
63 views

Alternative `batch` command for resources rather than load

I like the at and batch commands for scheduling long running tasks I do not plan to stick around to see. But my longest running tasks share resources other than just the CPU (databases, free disk ...
SeanTater's user avatar
4 votes
1 answer
222 views

Does the `at` command run missed jobs?

If I use at to schedule a command and the trigger time is missed (e.g. due to an unexpected power failure), will it still execute at the earliest possible time? (e.g. once power comes back on and it ...
arcyqwerty's user avatar
  • 1,050
3 votes
1 answer
109 views

How to run overdue at jobs

Sometimes I have at jobs overdue after system-suspend that don't run after waking up. How can I tell atd to run them? I tried atd -s or atrun but I guess that isn't meant for this as it doesn't run ...
Greg C's user avatar
  • 306
1 vote
0 answers
213 views

at sends a BCC to an address that doesn't exist

I'm running some pretty long tasks at work and I want to be warned when they finish, wherever I am, so I use at -m with sSMTP to get a notification on my Gmail address. It's my first time playing ...
scozy's user avatar
  • 111
1 vote
1 answer
68 views

Programs for contolling the execution of bash scripts [closed]

Can anyone recommend a GUI based program to control the execution of bash scripts according to time/interval? I'm already familiar with both cron and at and looking for recommended alternatives. A ...
moorej's user avatar
  • 207
1 vote
2 answers
2k views

Linux at command hangs?

I'm having a problem with the Linux 'at' command, and it's quite tough to Google 'at'.. The problem is that whatever I run, it doesn't seem to ever stop. e.g. here is a simple script I made (I ...
Relja Arandjelović's user avatar
0 votes
0 answers
194 views

Linux at command won't run the job in the past, lists it for tomorrow

I am trying to run a series of commands using at in about half an hour. However, at will either schedule it for tomorrow (if I don't specify today's date). If I do specify the date, it says it won't ...
user403723's user avatar
2 votes
1 answer
675 views

Does anyone have a Windows “at /every:” example to explain how to setup a batch file to run the first sunday of every month?

This is the one I have to run first day of the month, but I need to run it the first sunday of every month. at 13:00 /every:1 D:\DBMaintenance\MySc.bat Thanks
user avatar
0 votes
1 answer
55 views

Run PHP at specific time - oneliner

I'm trying to run some code that sends an SMS at a specific time in the future. All on one line... Here's my command line command: php -r 'include_once("/home/eamorr/open/open.ie/www/newsite/ajax/...
Eamorr's user avatar
  • 227
2 votes
1 answer
921 views

How can I start/enable `at` on MacOSX?

I just noticed that at jobs submitted in my terminal on MacOSX are never executed: $ atq 2 Fri Feb 7 12:07:00 2014 3 Mon Feb 10 10:36:00 2014 4 Sun Mar 9 09:59:00 2014 5 Mon Mar 10 13:39:00 ...
Ztyx's user avatar
  • 732
1 vote
1 answer
445 views

Can 'at' command keep on working after ssh connection broke?

I'm using ssh to connect to a remote server. And I execute at 03:13Jun12 -f t.sh would the remote host run this 't.sh' at 03:13 Jun 12 even if I broke this ssh connection? ( Assume the remote host ...
Zen's user avatar
  • 207
1 vote
2 answers
244 views

User-friendly wrapper or replacement for `at` command under OS X

I often want my computer to automatically add something to my to-do list at some point in the future. In some cases I want to add the same thing at regular intervals. In these cases I use OS X's ...
kuzzooroo's user avatar
  • 275
3 votes
1 answer
57 views

Puzzle of atrm vs at -d

I've found some puzzle with atrm command I can't understand. The man page for at says that atrm is an alias for at -d. The file /usr/bin/atrm command says that it is a symbolic link to at. Now if ...
golem's user avatar
  • 339
1 vote
0 answers
949 views

How can I call phones from my pc using a mobile phone connected to my pc?

I mean this question in abstract for usb/bluetooth connected featurephones and dumbphones. But also specially for this mobile phone: Motorola RAZR V3i I have computers running debian and ubuntu, can ...
Bryan Shadow's user avatar
1 vote
1 answer
1k views

Windows run job by id right 'now'

Can one run a scheduled command by id 'right now' ? I'm not sure if it is even possible on windows, Atleast I haven't found anything yet
PiiGuy's user avatar
  • 11
1 vote
2 answers
501 views

windows at command doesn't work properly

i am trying to use the at command to do a specific one time execution. assume that i have a batch file at c:\bat.bat that contains: %* > d:\out.txt i also have a Java with path registered in my ...
simaremare's user avatar
1 vote
1 answer
461 views

How configure email the at/batch results is sent to?

From the man page for at/batch, it 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. If at is ...
barryhunter's user avatar
2 votes
2 answers
5k views

Windows command line "at" command to run 10 seconds from now

I want to run some command once, 10 seconds to 1 minute from now. Windows at command only receives absolute times, like 11:50. How can it be done? Can it be done with other command line means?
Vic's user avatar
  • 435
2 votes
3 answers
2k views

Unix "at" command: I don't want it saving output to /var/mail/

By default (and from what I've looked at thus far), at dumps the standard terminal text output to /var/mail/yourusername. (e.g. echo "hello" | at now + 1 minute will save a log about the command) Is ...
n00neimp0rtant's user avatar
0 votes
1 answer
2k views

Sending sms with at commands, what kind of caracters i can't have in my message?

I need to know what kind of characters I can't put in my message, how to format it and if I can put spaces at the end of message. If some knows some about it, some bug, some hit, please tell me.
MrMissaya's user avatar
1 vote
2 answers
1k views

cron and at are not working

On my Mac (yeah, yeah I know. but my Linux box is at work) for some reason cron and at don't want to work. They both register that jobs have been added, with no syntax errors or any qualms at all. ...
tekknolagi's user avatar
  • 1,370
3 votes
1 answer
2k views

Have the at command return the job id of the task just submitted

Is it possible to have the at command return somehow the job id it just submitted when used from within a script? (kind of like $? retrieves the last exit code or $$/$! retrieve the PID of the command ...
yannisf's user avatar
  • 251
3 votes
1 answer
196 views

How can at execute a command from the command line

How can I schedule a command using at without having to include the command in a distinct file, neither from the mini at shell that reads from standard input? That is, I want to execute the command: ...
yannisf's user avatar
  • 251
2 votes
1 answer
221 views

'at' command output on Mac

I need to execute scheduled tasks with at command: echo "VM-run.sh $1" | at 08.00 > at_output.txt 2>&1 I would have the output of VM-run.sh, but what I have instead is this output: job 5 ...
robob's user avatar
  • 255
2 votes
1 answer
1k views

Easy quick notifications on Windows 7 with UAC

On Windows XP I was used to create simple notifications for myself using combination of at and msg commands. The whole thing was very easy hit Ctrl+R type eg. at 21:00 msg * Do something hit ...
Lukas's user avatar
  • 1,177
1 vote
1 answer
1k views

Getting zenity and at to work properly

I'm trying to use zenity and at to make a little reminder script. The problem is that while zenity --info works fine from bash (or sh), running echo "zenity --info" | at now + 1 min does nothing. ...
Ben Kraft's user avatar
  • 335
1 vote
0 answers
121 views

script -e and crontab or at

I have a shellscript I want to run via at and use script to capture a transcript. script -e was introduced in util-linux-ng 2.18 and returns the retval of the child process. I want to capture the ...
COMPUTERUSER's user avatar
5 votes
2 answers
5k views

Linux at command with seconds precision

I'm looking for some Linux command which may launch another command at a specific time. I know about the at command, but it gives me only minutes precision, and I need seconds precision. Is there an ...
Javier Novoa C.'s user avatar
0 votes
1 answer
2k views

Trace AT commands to a modem

I have a HSDPA modem attached to the USB port and I use the software that came bundled up with this modem to connect to the Internet. Can I trace the AT commands issued to this modem using a packet ...
Indika K's user avatar
  • 177