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

91 questions
23
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,308
  • 32
  • 117
  • 200
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,245
  • 9
  • 34
  • 42
7
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
  • 103
  • 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…
Ya. Perelman
  • 3,532
  • 3
  • 29
  • 42
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
  • 762
  • 1
  • 6
  • 10
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
  • 20,415
  • 5
  • 59
  • 95
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,162
  • 11
  • 27
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
  • 73
  • 1
  • 1
  • 6
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,384
  • 2
  • 15
  • 28
2
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,674
  • 3
  • 21
  • 33
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…
2
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
  • 63
  • 7
2
votes
1 answer

How to send a future email using AT command

I just need to send one email into the future, so I figured i'd be best at using at rather than using cron. This is what I have so far, its messy and ugly and not that great at escaping:

        
ParoX
  • 4,850
  • 19
  • 72
  • 138
2
votes
1 answer

PHP "AT command" not executing on nginx ubuntu 16.04

php sample code Not working on server: exec('echo "hello world" | at now + 2 minutes'); On terminal same code successfully getting executed below code : echo "hello world" | at now + 2 minutes We are using php 7.0, ngnix, ubuntu 16.04 i am…
1
2 3 4 5 6 7