at-job

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

和自甴很熟 提交于 2021-02-04 19:55:33
问题 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 script to at command, also it there some python package for control the at command My dev os is ubuntu 10.04 lucid,and my product server is ubuntu-server 10.04 lucid version. in fact, I want through python script add python script tasks to at command

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

倾然丶 夕夏残阳落幕 提交于 2021-02-04 19:55:06
问题 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 script to at command, also it there some python package for control the at command My dev os is ubuntu 10.04 lucid,and my product server is ubuntu-server 10.04 lucid version. in fact, I want through python script add python script tasks to at command

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

南笙酒味 提交于 2020-01-01 19:26:06
问题 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 also verified that the processes actually exist with ps and at -l depending on which scheduling syntax i used. Both these processes die when I exit out of the shell. Is there a way to keep a script from terminating when I close the connection? We

Run a command at a specific time

限于喜欢 提交于 2019-12-20 08:59:46
问题 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 press enter and "Ctrl+D" to set up the delay... How to do this in a script? Any suggestions most welcome. Thanks in advance, 回答1: You could try this: at 1843 <<_EOF_ php /run/this/script.php _EOF_ edit if what you want to do is run Firefox, try this

Schedule a job in Gearman for a specific date and time

我只是一个虾纸丫 提交于 2019-12-18 03:04:11
问题 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 as they are written as files to a directory in the spool directory of the server. So the only bottle neck would potentially be a simple script to add the task to the Gearman queue because at can't be distributed across servers. Passing it to

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

空扰寡人 提交于 2019-12-14 03:46:04
问题 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 the Schedule::At module which is the Perl interface to the "at" command. Since the scheduled tasks are not repeating, I am not considering "cron". I have two issues with "at" though: Scheduling works fine when my CGI application runs under the suexec wrapper, but not when scheduled by the owner of the Apache process. How can I get

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

流过昼夜 提交于 2019-12-04 20:08:49
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 also verified that the processes actually exist with ps and at -l depending on which scheduling syntax i used. Both these processes die when I exit out of the shell. Is there a way to keep a script from terminating when I close the connection? We have crons here and they are set up and are working properly, but I would like to use at or nohup for

Run a command at a specific time

隐身守侯 提交于 2019-12-02 17:36:23
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 press enter and "Ctrl+D" to set up the delay... How to do this in a script? Any suggestions most welcome. Thanks in advance, You could try this: at 1843 <<_EOF_ php /run/this/script.php _EOF_ edit if what you want to do is run Firefox, try this: at 1843 <<_EOF_ DISPLAY=:0.0 /usr/bin/firefox _EOF_ You can echo your command into at as input: echo "/usr

Schedule a job in Gearman for a specific date and time

五迷三道 提交于 2019-11-29 00:15:05
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 as they are written as files to a directory in the spool directory of the server. So the only bottle neck would potentially be a simple script to add the task to the Gearman queue because at can't be distributed across servers. Passing it to Gearman to process the actual job means I can get proper job logging etc. Is this the best way to approach