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

AT to SCHTASKS: how to avoid repetition?

I'm adapting a WinXP batch file that used the AT command to schedule some interactive, fairly-long-duration, activities (and later to kill the processes they would spawn) to use Win7's version of SCHTASKS (since AT in Win7 no longer supports the…
1
vote
2 answers

How to run 'at' as a different user?

I often need to run at jobs as a different user. I've always done something like $ echo "$PWD/batchToRun -parameters" | sudo su - otheruser -c "at now" batchToRun is also scheduled to run via otheruser's crontab. This works out well until…
jhfrontz
  • 1,165
  • 4
  • 19
  • 31
1
vote
1 answer

nohup for batch command using " for x in find "

I am trying to run a Python script (qTrimHIV.py) on ALL the files ending in .fastq in the current directory. I'd like to append nohup at the beginning so that it does all the files out from a single command, and no matter if I close the terminal or…
Carmen Sandoval
  • 2,266
  • 5
  • 30
  • 46
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,311
  • 7
  • 31
  • 52
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
  • 4,368
  • 7
  • 33
  • 51
0
votes
0 answers

at-Command used on linux raspberry

I'm currently working on a Linux script on my Raspberry Pi, which should call another script with a time delay. I chose the "at command" for this and let python execute the code directly in the console. import shlex import…
0
votes
0 answers

Use Zenity with "at"

Here is my problem : I want to display the date through zenity at a specific time given by the user with "at". Here is my code: When I run the code, it shows : When i add "-", it shows
0
votes
1 answer

How to execute script as bash using "at"?

It was a pain to google solutions for my problem since it is using application "at" :) So the thing is, I am trying to run long runnng operation (I know that I could add some specific entry to cron, but I am still learning new stuff") and I decided…
veetay
  • 13
  • 2
0
votes
2 answers

Cannot open lockfile /var/spool/cron/atjobs/.SEQ

I currently made a feature that makes use of the ATD service in a php 7.3 image with the Debian 10 operating system. ATD works fine in development, but when I upload the image to the rancher and try to schedule the job with ATD using apache…
Igor AC
  • 57
  • 1
  • 5
0
votes
3 answers

Passing arguments to at -f script

I'm trying to schedule a bash script using at command on Linux. at 22:20 -f /path/to/script.sh Issuing the command above works just fine. However, the script requires some parameters. Adding Params behind the script path returns an error…
Lino
  • 184
  • 1
  • 1
  • 8
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
  • 463
  • 2
  • 7
  • 20
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
  • 305
  • 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
  • 812
  • 1
  • 12
  • 36
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…