Questions tagged [at-job]

"at" is a classic Unix command that read commands from standard input (or a specified file) which are to be executed at a later time, using /bin/sh. Use this tag for questions related to programmatic use of "at"; trouble shooting and general usage questions might be better suited for Super User or Unix & Linux.

at is used to schedule commands for one-time execution, as opposed to jobs, which are run at regular intervals.

Relevant links

Related tags

97 questions
25
votes
5 answers

Run a command at a specific time

I'm trying to run a command at a specific time. I've looked at the "at" command, but I don't know how to get it working... Here's what I do: at 1843 (Enter) php /run/this/script.php (Ctrl+D) But how do I do this in a bash script? I mean, I need to…
Eamorr
  • 9,872
  • 34
  • 125
  • 209
11
votes
4 answers

List and kill at jobs on UNIX

I have created a job with the at command on Solaris 10. It's working now but I want to kill it but I don't know how I can find the job number and how to kill that job or process.
soField
  • 2,536
  • 9
  • 36
  • 44
8
votes
1 answer

How can I use an at command in a shell script?

I am trying to use the Unix at command (for setting a job to run at a certain time) in a shell script. The time will be specified by user input using getopts and optarg which seem to be working fine, the problem is at. How do I write the at command…
user2177896
  • 107
  • 1
  • 2
  • 7
6
votes
1 answer

How do I schedule one-time tasks from a Perl CGI application?

I am writing an application to allow users to schedule one-time long-running tasks from a web application (Linux/Apache/CGI::Application). To do this I use the Schedule::At module which is the Perl interface to the "at" command. Since the scheduled…
Gurunandan Bhat
  • 3,544
  • 3
  • 31
  • 43
6
votes
3 answers

Rescheduling an at job

Is there a way to change the date of a job that has been issued with the unix at command? I need to do this because my Application has scheduled too many jobs at the same time which will bring the machine to a grinding halt.
Michael Ulm
  • 802
  • 1
  • 7
  • 11
6
votes
3 answers

Schedule a job in Gearman for a specific date and time

From what I can see Gearman does not support scheduled jobs or delayed jobs. I was thinking that perhaps the scheduled job could be queued in at first and then added to the Gearman queue after the at time period has expired. at tasks are persistent…
Treffynnon
  • 21,365
  • 6
  • 65
  • 98
4
votes
3 answers

Unix 'at' command via PHP to run single function

Is it possible to schedule a single php function to run at a specific time in the future using the Unix 'at' command? If so how would this be done? Also is this the best way to handle scheduling a single function to run at a later date?
Sherms
  • 1,567
  • 1
  • 15
  • 31
4
votes
1 answer

Is there a python module for the Linux "at" task scheduler

Lest I reinvent the wheel .... again: Is there a python interface, API or module for the standard linux "at" task scheduler? I have tried searching the internet but searching for the word "at" is a tad bit useless :-) My intention is to have a…
LewTwo
  • 83
  • 8
4
votes
4 answers

How to use at command to set python script execute at specified time

When I try to use cron to execute my python script in a future time, I found there is a command at, AFAIK, the cron is for periodically execute, but what my scenario is only execute for once in specified time. and my question is how to add python…
mlzboy
  • 14,343
  • 23
  • 76
  • 97
4
votes
1 answer

Bash - Running multiple commands in sequence from while loop using input from file

Trying to use a single while loop to collect variables from user and run sequential "at" commands. Singular at command works, trying to combine fails without errors. In this particular case, output shows that the jobs are created, however the…
Wyvern1123
  • 83
  • 1
  • 1
  • 6
3
votes
2 answers

Can I specify a .zip format for a .sql file created from Windows At.exe?

I have automated my mySQL db backup on my Windows 2003 server using AT.exe. I have scheduled a job like this, which is working fine. AT 23:59 /EVERY:m,t,w,th,f,s,su c:\path\backup.bat In the backup.bat file, is this…
jamesTheProgrammer
  • 1,747
  • 4
  • 22
  • 34
3
votes
1 answer

Using linux' at command - scheduling daily / weekly possible?

I recently came across the at command on the command line, but I am wondering whether I can write a bash script that somehow enables me to tell the at command to run at 8 pm every day, or every monday, every week etc. basically at regular intervals.…
George Welder
  • 3,787
  • 11
  • 39
  • 75
3
votes
1 answer

Find out ID of 'at' job from within it

When I schedule a job with 'at' it is assigned an id, viz: job 44 at 2014-01-28 17:30 When that job runs I would like to get at that id from within it. This is on Centos, FWIW. I have established that no environment variable contains the ID. When…
3
votes
3 answers

Difference between nohup vs at now

It seems that there is no difference between nohup and at now, but maybe there are subtleties?
erkfel
  • 1,588
  • 2
  • 17
  • 29
2
votes
0 answers

Execute linux AT Command via PHP

When I run this code via ssh echo wget http://domain.com/send_me_email.php | at 12:54 it ran correctly and sent me an email at that time. Not if I run a PHP script like this exec("echo wget http://domain.com/send_me_email.php | at…
1
2 3 4 5 6 7