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
1
vote
1 answer

How can I use AT command of linux from PHP?

Possible Duplicate: Creating an email queue in PHP? My PHP script is sending hundreds of emails. And I want to set gap between these email sending times as 5 mins. I mean, time tap between each 2 emails should be 5 mins. Like one should be sent…
user987346
1
vote
2 answers

echo "command" | at now - where does the output of command go

I have a code that does this. Command is a perl script. I don't see the output of that anywhere. Is there a log of at command somewhere which I can check. At is a the fairly common word so I get irrelevant hits on google. Man at does not give any…
doon
  • 2,181
  • 6
  • 30
  • 46
0
votes
1 answer

linux 'at' command like functionality for mysql database

I need to update a particular field in the database based on some timestamps in the same table. Now are there time based triggers which can be scripted to look at the value and do things? much like the linux 'at' command. I know one way is to…
zubinmehta
  • 3,860
  • 7
  • 31
  • 50
0
votes
1 answer

Ignore duplicate jobs running with at command

I'm on Freebsd9.2.(I have to use this operating system) I want to run multiple scripts with at command but I want to ignore running a script in a same time. For example: I have 3 script files: 1.sh, 2.sh, 3.sh I have a job to execute 1.sh at today…
F.M
  • 359
  • 2
  • 6
  • 17
0
votes
2 answers

How to define a Job ID when using the AT command

How is it possible to define the name / ID of a job whilst creating a task with the AT command?
Mike
  • 285
  • 3
  • 5
  • 7
0
votes
2 answers

how to execute bash for 3 minutes then shut down the machine

I want to run bash in a specific time(With at command ) for 3 minutes after that, I want to shut down the machine This is my bash code (send.sh) : $ x=10 echo The value of variable x = $x and this is my at command : at 2:30 PM tomorrow what…
majid
  • 672
  • 1
  • 8
  • 32
0
votes
1 answer

Why isn't the "at" command sending data to the designated output file?

I am trying to use the "at" command to run a lengthy code (code.x) that will take values from an input deck (input_deck.in) and output the results to results.out. I have a text file labeled job.txt with the desired command. The contents of job.txt…
0
votes
1 answer

Mailx with at command

I am trying to send a mail with at command, but the mail is getting delivered instantly, instead it should send the mail as per the time provided in at command. Below is the script: #!/bin/bash TODAY=`date +%Y%m%d` echo 'Please enter the…
0
votes
1 answer

Using 'at' command to record video stream the next day and do it only once

I'm trying to start and stream video to vlc and record the same video stream to a file that starts at 05:45 am the next day Everything works but the start time, instead of starting at 05:45 am the next day it starts immediately. What did I…
Rick T
  • 3,125
  • 9
  • 43
  • 101
0
votes
1 answer

Execute bash-command with "at" (<<<) via python: syntax error, last token seen

I'm using a radio sender on my RPi to control some light-devices at home. I'm trying to implement a time control and had successfully used the program "at" in the past. #!/usr/bin/python import subprocess as sp ##### some code ##### sp.call(['at',…
Gerdinho
  • 3
  • 1
0
votes
0 answers

Execute AT command from browser when someone access my page

I need to execute AT command from browser. My /etc/at.deny is empty and /etc/at.allow does not exists. I could execute "php page.php" on command line with any user and works fine. Here is my page (page.php):
superrman777
  • 25
  • 1
  • 6
0
votes
1 answer

crontab to move/copy either on specific file or random file at date/time

I am bit clueless where to start. I am looking for a solution a) copy a particular file from folder A/ to B/ @ fix day/time b) copy a random file from folder A/ to B/ @ fix day/time Any hint how to start would be really appriciated CI
0
votes
0 answers

bash - at refusing to execute script?

Let's say I have a script to start some java stuff start.sh myStuff=10.0.0.13 port=11212 servers=(10.0.0.9 10.0.0.10 10.0.0.11 10.0.0.12 10.0.0.14) T=$1 R=$2 nohup java -jar myJar.jar -l ${myStuff} -p ${port} -t $T -r $R -m "${servers[@]/%/:11212}"…
User1291
  • 6,231
  • 5
  • 34
  • 75
0
votes
1 answer

Creating an "at" job from command line for a MYSQL query

From the command line, I want to create an at job to run a mysql query. As you can imagine searching on google or here stackoverflow for "at" is difficult. This works fine and the query runs like it ought to: mysql -e 'MY QUERY;' but if I do…
pg.
  • 2,297
  • 4
  • 39
  • 62
0
votes
1 answer

Cron job from php (at command to be exact)

I want to run a script just ONCE by setting up a cron job using "at" command. I'm using this now:
user360330