Questions tagged [at]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
57 votes
6 answers
64k views

How do I print contents of at jobs?

I have a Debian box with some jobs scheduled using at. I know I can list the jobs with their times using atq, but is there any way to print out their contents, apart from peeking into /var/spool/cron/...
che's user avatar
  • 719
8 votes
4 answers
7k views

Logging atd messages via syslog

I am running CentOS 5.3 and would like to log all messages from the "at" daemon. My syslog.conf contains the following entry: cron.* /var/log/cron I assumed that cron line in syslog refers to the ...
Gurunandan Bhat's user avatar
4 votes
1 answer
3k views

How to restart atd without affecting running jobs?

Does anyone know how to restart atd without affecting current running (batch) jobs? I guess I could move the jobs out of the spool directory and wait for the current running jobs to finish, but I'm ...
Ztyx's user avatar
  • 1,405
4 votes
0 answers
198 views

`at` jobs running tens of minutes later than expected [closed]

I have an issue with at jobs being queued successfully and running successfully, but sometimes tens of minutes after they are scheduled to run. I confirmed that atd is running: me@hostname:~$ ps -ef ...
ff524's user avatar
  • 141
3 votes
6 answers
52k views

Pop up a message or run a program on remote windows 7 computer so currently logged on user can see it

How can you pop up a message or run a program on remote computer so the currently logged on user can see it. We have done this on WinXP, but these don't work with Win7. at.exe \\computername time /...
Patrick's user avatar
  • 401
3 votes
4 answers
645 views

Ubuntu 8.04 server: can't invoke at

For some reason I can't use at command from an ordinary user $ at You do not have permission to use at. I've checked my /etc/at.deny, it doesn't have my user there. There is no /etc/at.allow. I ...
kepkin's user avatar
  • 143
3 votes
1 answer
341 views

Do cron and atd run jobs with the same user, permissions and environment?

What's the difference between running a bash script via cron and running the script via atd? Is there any difference? Is it specific to the distro? If so, what about SLES 11?
Ed Manet's user avatar
  • 532
3 votes
1 answer
326 views

environment variables generated by at command

I'm inspecting /var/spool/cron/atjobs/a001cf01570e44 with cat, after running the at command from PHP using exec(). It looks like at has prepended the script with lots of APACHE environment variables. ...
Jordan Arsenault's user avatar
3 votes
3 answers
75 views

Is it possible to determine if a job is being started as an at job (kicked off via atd/cron)?

Is there a way to identify a script is being run as an at job instead of interactively from the shell by a user? Some of our scripts have a guard to check if they're running in screen by checking $...
cclark's user avatar
  • 567
2 votes
1 answer
4k views

linux + at command + how to kill the job

I use the at command in order to run the task (test script ) every one min at -f /tmp/test now +1 minute commands will be executed using /bin/tcsh job 1438153690.a at Wed Jul 29 10:08:10 2015 but ...
maihabunash's user avatar
2 votes
3 answers
495 views

Zenoss SMS missing text

I've set up a Xenserver hosting a Debian VM with Zenoss Core 4.2.4. The Xenserver has a Siemens T35 GSM Modem attached to its serial port COM1. I used ser2net + some Xenserver configuration to get it ...
grmbl's user avatar
  • 155
2 votes
2 answers
2k views

AT jobs not running

Ubuntu 10.04 Server I am using at to have a bash script schedule itself to run again a particular interval after it completes: (here is the last line of that script) echo "$0" | at tomorrow + ...
yakatz's user avatar
  • 1,243
2 votes
1 answer
70 views

Capturing output of 'at'

How can I log the output of a command executed by at? This command is actually being exec()'d by PHP as in: <?php exec('echo "curl -k https://localhost/projekt/crons/purge/5" | at now + 5 minutes'...
Jordan Arsenault's user avatar
2 votes
1 answer
458 views

problems with scheduler and rights [closed]

I have WinXP installed in C:\WINDOWS\ with 2 accounts: Administrator and user. The second one is limited and used for main work, but I also know a password for Administrator. I want to make an alarm ...
kirilloid's user avatar
  • 123
2 votes
0 answers
43 views

Force at to email effective user instead of logged in user

The at scheduler is emailing an unexpected user consistently on both old RHEL6 boxen and new OEL7 boxen when the jobs produce output or when the -m flag is used. If we log in to the box with our ...
Rob's user avatar
  • 148
2 votes
1 answer
1k views

Why is `www-data` (Ubuntu / Apache user) listed in the `/etc/at.deny` file?

I have a cgi script that is resending an email on a failed attempt 5-10 minutes after a user accesses a page. My thought was to do this using the at command from a python call (os.system("at now + 5 ...
Jamie's user avatar
  • 1,314
1 vote
1 answer
272 views

Does Solaris/Illumos have a daemon for at jobs, or manage internally?

I scheduled a test at job and reviewed it with atq, but I do not see an atd daemon which will carry them out. Is this managed within the Solaris / Illumos kernal? If not, which daemon manages at jobs?...
700 Software's user avatar
  • 2,273
1 vote
3 answers
207 views

at Command output is not uniform across versions and operating systems. Any other way of doing this?

I have written a small PHP script to wrap the at command on Ubuntu. Now I need to get the same code running on a Redhat server. Of course the output when adding and listing jobs is of course different....
Treffynnon's user avatar
1 vote
2 answers
183 views

At command - Windows

I'm quite confused by the at command, I am not even sure if something IS happening as I don't get feedback if a task has been added or not. Is there anywhere I can check added tasks?
RadiantHex's user avatar
1 vote
2 answers
394 views

Problems using "at" with Apache

I'm trying to use a PHP script to create at jobs, but when it comes time to execute the jobs, nothing seems to be happening. I've tried to output any errors to log files, but have had no luck. It ...
Alex Padgett's user avatar
1 vote
3 answers
3k views

changing default shell to /bin/bash of at job scheduler like in CRON

Is there a way to change the initial shell used by the atd job scheduling service? Esp. in Ubuntu. at by default uses /bin/sh in every Linux and Solaris I've deployed products on. GNU's crontab ...
Marcos's user avatar
  • 113
1 vote
1 answer
51 views

at command seems to be discarding output

Running 'at' on either Debian Jessie or Raspbian Jessie, output seems to go down a black hole whatever I do. I'm wanting to capture errors, but even in the simple case of stdout I can't seem to ...
user1247280's user avatar
1 vote
0 answers
80 views

SELinux prevents Apache from scheduling at job

I have an application that submits tasks to cloud services that create certain time-sensitive assets. The services take an unknown amount of time to process, and in addition the assets may be ...
EK0's user avatar
  • 235
1 vote
1 answer
435 views

avoid zombie processes when using at

I'm using at to schedule a script in a Centos based Docker container. e.g. echo "bash /path/to/script.sh" | at now + 1 minute It mostly works as expected with the exception being that it results in ...
zcourts's user avatar
  • 149
0 votes
2 answers
251 views

How can I use symbolic signals in an at job?

In this answer on SO, I gave an example that should have used a -SIGCONT signal in a job submitted to at. However, I found that the process that I had stopped with -SIGSTOP did not continue. When I ...
Dennis Williamson's user avatar
0 votes
1 answer
879 views

at daemon: What is the point of the "batch" queue?

I'm wondering if there's a practical purpose to the batch queue (i.e. batch, at -q b). I'm asking this because there seems to be a mandatory 1 minute wait time (by atd's default) between consecutive ...
antak's user avatar
  • 589
0 votes
1 answer
3k views

What does the @ symbol mean before a file path in Windows command prompt?

I've noticed that powershell.exe started csc.exe with a command line like this: "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe" /noconfig /fullpaths @"C:\Windows\TEMP\pn1kld2d.cmdline" I'...
Alex's user avatar
  • 186
0 votes
1 answer
2k views

how to find linux at job status

Im using echo "<some command> | at -q <queuename> now to create a queue of jobs. I can use atq command to get list of jobs. I cant seem to find any command or swtich which can show me ...
mg03's user avatar
  • 197
0 votes
1 answer
921 views

/interactive flag with the at command in Windows Server 2003

In Windows XP, it's possible to use the at command to launch programs (e.g. "at 5:00PM /interactive gohomefromwork.exe"). The at command also exists in Windows Server 2003 but I can't seem to run ...
Zian Choy's user avatar
  • 281
0 votes
1 answer
395 views

How to remove at job generated by www-data with another Linux user

Script executed by www-data creates an at job. Afterwards, normal Linux user cannot remove this job (atrm) because "Not owner". How can this be achieved?
Uxio's user avatar
  • 1
0 votes
1 answer
979 views

Windows Server 2003 - AT command for repeating a scheduled Task

Is it possible to use the AT command to create a scheduled task that repeats every X minutes? I can use AT to make one that repeats daily/weekly/monthly, but haven't seen a minute/hourly repeat. I can ...
Dustin's user avatar
  • 475
0 votes
0 answers
65 views

at jobs don't clear the queue even when completed?

I have some very simple python code that sets up a job queue, piping to the linux batch command: import subprocess for j in range(1,17): process = subprocess.Popen('/bin/sh', '-c', f'python test.py ...
MKF's user avatar
  • 101
0 votes
0 answers
36 views

at-command: Scheduling and process priority

I have about 10 "at" jobs. There are cases where there is a conflict of resources and I am trying to find a neat way to schedule this. Say, job#5 may want to start before the job#4 ends. ...
SEU's user avatar
  • 101
0 votes
1 answer
249 views

script spawn via atd leaves a process stuck in wait

I have a bash script which is run via at, I run it like echo "bash /path/to/my/script.sh" | at -M now because I want it to run detached. When the script is spawned, immediately I see 2 ...
Ani's user avatar
  • 32
0 votes
1 answer
574 views

Debian 8- atd process consuming 99% cpu

I’m new to server administration. Using Debian 8, a process called atd is consuming 99% of cpu. From googling I found out that atd is a job scheduler, but I didn’t set up any. I just have apache 2 ...
Cybermonk's user avatar
  • 101
0 votes
1 answer
3k views

at command: Exec failed for mail command: No such file or directory

I got to run a task today at midnight on a debian system. As I never did anything with atd I wanted to try first, if it works as expected. I got a test.sh in folder /usr/local/dump/ which contains ...
Igl3's user avatar
  • 103
0 votes
0 answers
626 views

schedule command with "at" after reboot

I'm trying to schedule a command to run only once with at. But the server is prone to reboot at least once every day. I already tried to schedule a command with at` to be executed in 24 hours, but it ...
RazorHail's user avatar
  • 165
0 votes
0 answers
107 views

need at jobs identified by name (advanced atd daemon)

Sometimes I'd like to delete or overwrite (or simply cat) an at job. Unfortunately, the at jobs are identified by a sequential number (file in /var/spool/cron/atjobs), which makes those operations ...
stoqlt's user avatar
  • 81
-1 votes
1 answer
30 views

How to restrict access to subdirs in Nginx

My question is very simple, but I can't find simple answer on this forum or Google... How to restrict access to all subdirs in Nginx ? I can only restrict access to the exact path: location /wiki/...
Etienne Bouché's user avatar
-1 votes
1 answer
542 views

Allow nginx www to run Centos at command

I have a job which created by PHP script running as www (nginx) 31 2014-06-09 19:08 a www After the time passed, the job is executed but nothing happens. But if i run it as a root, 32 ...
Syed's user avatar
  • 1