Questions tagged [at]

39 questions
53
votes
5 answers

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/atjobs?
che
  • 679
  • 1
  • 5
  • 13
6
votes
4 answers

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 entire family of "cron, anacron, at and batch".…
Gurunandan Bhat
  • 227
  • 3
  • 8
4
votes
0 answers

`at` jobs running tens of minutes later than expected

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 | grep atd daemon 1223 1 0 Aug27 ? …
ff524
  • 141
  • 3
4
votes
1 answer

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 curious to hear.
Ztyx
  • 1,365
  • 3
  • 13
  • 27
3
votes
1 answer

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
  • 522
  • 1
  • 5
  • 16
3
votes
3 answers

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 $TERM. I'm trying to figure out if I can…
cclark
  • 567
  • 2
  • 6
  • 14
3
votes
1 answer

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. #!/bin/sh # atrun uid=33 gid=33 # mail www-data…
3
votes
6 answers

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 /interactive message.vbs (time is hh:mm at least a…
Patrick
  • 399
  • 3
  • 4
  • 14
3
votes
4 answers

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 tried to restart atd, but it doesn't help. Any…
kepkin
  • 143
  • 1
  • 5
2
votes
0 answers

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 individual user accounts, then use sudo su - to switch…
Rob
  • 148
  • 5
2
votes
1 answer

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 how to kill this Job? ( 1438153690.a ) If needed…
maihabunash
  • 443
  • 1
  • 11
  • 25
2
votes
3 answers

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 working. (COM1 binding, SELinux, ...) I created a…
grmbl
  • 155
  • 9
2
votes
1 answer

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 minutes <<< ' python resend.py data'")). Testing…
Jamie
  • 1,274
  • 7
  • 22
  • 39
2
votes
1 answer

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:
2
votes
2 answers

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 + 5minutes The job gets scheduled, but does not run. When…
yakatz
  • 1,213
  • 3
  • 12
  • 33
1
2 3