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
1
vote
3 answers

Using Linux 'at' to schedule jobs via C++

I have a C++ program that needs to schedule various future processes to kick off on a one-time-only basis. The development is in Linux so the obvious choice is to use the 'at' command; I'm not interested in writing my own job scheduler! However I'm…
Phil
  • 11
  • 2
1
vote
1 answer

PHP(Apache) doesn't execute BASH command (At + Wget)

So, guys, I have the following code: The main idea is to wget some url at the specific…
1
vote
1 answer

command at that run from cmd isnot working

I run the following AT command in windows CMD: at 8:52 "start calc" it is scheduled and can be seen in the list when running "at" but when reached the time it is not executed as accepted and when running "at" again it is deleted from the list…
user3879626
  • 127
  • 6
1
vote
5 answers

How do I keep a Perl script running on Unix after I log off?

I have a script that takes a lot of time to complete. Instead of waiting for it to finish, I'd rather just log out and retrieve its output later on. I've tried; at -m -t 03030205 -f /path/to/./thescript.pl nohup /path/to/./thescript.pl & And I have…
CheeseConQueso
  • 5,831
  • 29
  • 93
  • 126
1
vote
1 answer

at command strange behaviour

This is the first time i am playing with the at command in linux and notice something strange. Say i create this test file: #!/bin/bash count=1 echo "count is $count" then i issue at -f /full/path/to/myscript.sh -v 13:00 -m and wait for it to run.…
ghostdog74
  • 327,991
  • 56
  • 259
  • 343
1
vote
2 answers

Cannot pipe to 'at'

I have a note programme which calls echo 'notify-send Hello' | at now +1 minutes however this does not work. I tried it in a terminal and, sure enough, notify-send Hello works, but echo 'notify-send Hello' | at now +1 minutes does not. What solution…
1
vote
2 answers

Start a bash script later in PHP

I'm trying to start a bash script later in PHP so I allowed it in visudo. www-data ALL = (root) NOPASSWD: /sbin/iptables www-data ALL = (root) NOPASSWD: /usr/bin/at The script removeuserIP is just doing sudo iptables ... and is…
Masa
  • 60
  • 7
1
vote
1 answer

Run script with arguments via ssh with at command from python script

I have a python program which needs to call a script on a remote system via ssh. This ssh call needs to happen (once) at a specified date which can be done via the linux at command. I am able to call both of these external bash commands using…
John
  • 1,556
  • 4
  • 26
  • 42
1
vote
1 answer

Is there a app or python package for managing background python script add,execute,stop?

I want an app or python package that can 1.Dynamically add python script to the background 2.Execute a specified time 3.Check is this python script is running, 4.Also i can kill the current execute script. Is already has such package,so i needn't…
mlzboy
  • 14,343
  • 23
  • 76
  • 97
1
vote
3 answers

at command for linux job not working from php

I have a script .sh with a curl command in it: curl --digest "http://xxxxxxx.xxx/mail.php?email=xxxx@xxx.xx"; from terminal this works good : ./script.sh #(mail arrives in my box) from php this works good: shell_exec('./phpsc.sh'); // (mail…
yassine
  • 31
  • 3
1
vote
1 answer

Trouble using the `at` command on mac

I'm unable to get the at command to run from the Mac Terminal. I've tried at -f test.txt 10:44 which puts it in the queue, but then it never runs. I've tried sh test.txt | at 10:43 which puts it in the queue (though it never runs), but it also runs…
dmgig
  • 4,400
  • 5
  • 36
  • 47
1
vote
1 answer

How to run Linux 'at' command to Apache account?

If you register at a command using the shell script is running well. However, it does not run when you register at the command using php. When registering as a shell script, 61 2015-09-15 14:53 a root When using php, 62 2015-09-15 14:53 a…
LuckyLeeis
  • 23
  • 1
  • 4
1
vote
2 answers

At command : job number

I'm writing a bash script where I use the command at. How can I get the number of a job created with at? (In order to delete if needed.) The command actually returns nothing. I get a response from the system when I use at in the shell, but I can't…
Rat Sin
  • 13
  • 2
1
vote
1 answer

Scheduling a Script without cron and at commands

I'm working on a proprietary Linux based server which does not have cron and at utilities. Nor does it allow me to install the same Can any one help me out in scheduling a particular task without these two utilities
Karan Kohli
  • 19
  • 1
  • 8
1
vote
1 answer

Issue with scheduling in Linux

I scheduled a script using at scheduler in linux. The job ran fine but the echo statements which I had redirected to a file are no where to be found. The at scheduling command is as follows: at -f /app/data/scripts/func_test.sh >>…
Dark Matter
  • 2,231
  • 3
  • 17
  • 31