scheduled-tasks

Adding tasks to Windows scheduler with PHP

旧街凉风 提交于 2019-12-12 17:37:50
问题 I'm unable to find any information on adding tasks to Windows Task Scheduler with PHP. I can use exec(). This has to work on IIS. 回答1: Windows Schedule Task has a command line utility called Schtasks you can use this utility to add your task to Scheduled task list. Please go thru the URL for syntax of Schtasks http://technet.microsoft.com/en-us/library/cc772785%28WS.10%29.aspx#BKMK_run 回答2: Syntax for schtasks Schtasks /create /sc ScheduleType /tn TaskName /tr TaskRun [/s Computer [/u [Domain

How to Create Indefinite Duration for a Task in Windows 2003 Task Scheduler

浪子不回头ぞ 提交于 2019-12-12 16:32:22
问题 I'm trying to create tasks with an indefinite duration. On Windows Server 2008, if I don't specify the duration, then the duration is assumed infinite. However, on Windows Server 2003 a duration must be specified (and be equal or greater than the interval). Currently, I am just setting the task to have a duration of a year if it is meant to repeat a long time. Is there a way to specify an indefinite duration on Windows Server 2003? if (m_TimeInterval.m_Expire.Year < 2099) //xp and win7 max

I don't have cron jobs on my server. What is an alternative for sending emails without user input?

与世无争的帅哥 提交于 2019-12-12 14:35:50
问题 I am looking for a way to have some way to have a script execute itself without my input. Is this possible? And it not, what would be another option? I don't care to use a 3rd party site for cron jobs either. 回答1: You could build the code into a web-visible PHP script, and then register it with a URL monitoring service like http://mon.itor.us/ that will load your URL every half hour. (I'm not sure what you mean by "3rd party site for cron jobs" - hopefully this isn't it. :-) 回答2: http:/

Scheduled method in a standalone application in spring

偶尔善良 提交于 2019-12-12 11:29:28
问题 I have a method which needs to be executed every day at 07:00. For that matter I created a bean with the method and annotated it with @Scheduled(cron="0 0 7 * * ?") . In this bean I crated a main function - which will initialize the spring context, get the bean and invoke the method ( at least for the first time ), like this: public static void main(String[] args) { ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(args[0]); SchedulerService schedulerService =

ASP.NET Site - Firing some code at a specific time

怎甘沉沦 提交于 2019-12-12 11:27:47
问题 I'm planning on building an ASP.NET web site, which will be on a shared hoster. I don't have an option for a windows service for this. What are my options specific to a web site where I can execute a task, say at 3 AM in the morning? Maybe kicking off a separate thread, or something? Thanks. 回答1: Seem legit 回答2: I was just about to do something similar. What needs to happen is a seperate thread needs to be kicked off from the Global.asax. void Application_Start(object sender, EventArgs e) { /

Debugging a Windows Console Application from Task Scheduler

烂漫一生 提交于 2019-12-12 10:19:57
问题 I also checked previous questions on Stack Overflow before posting this. Here is my problem: I created a Windows Console Application on Visual Studio 2017. This application is supposed to fetch some data from tables and send email at regular intervals. Initially, I created a Windows Service and it is working fine but later I decided to execute this from Task Scheduler as changing schedules would be easy. The MAIN code is as below: public static void Main(string[] args) { RetrieveData(); }

c++ multithreaded task queue for scheduled tasks

匆匆过客 提交于 2019-12-12 10:14:13
问题 I need to develop a module which will execute scheduled tasks. Each task is scheduled to be executed within X milliseconds. The module takes as a parameter an amount of worker threads to execute the tasks. The tasks are piled up in a queue which will probably be a priority queue, so a thread checks for the next-in-queue task (the one with the lowest "redemption" time), thus there's no need to iterate through all tasks each time. Is there any public library that does that or shall I roll my

How to fix scheduled tasks after upgrade from ColdFusion 9 to 10

我只是一个虾纸丫 提交于 2019-12-12 09:48:26
问题 After upgrading and migrating from ColdFusion 9 to 10, all of our scheduled tasks are gone. In the logs, there are "Advance Scheduling support is not available in this edition of ColdFusion server" errors. I know this is a known issue that was fixed in the first update. At this point, ColdFusion 10 is on update 10 (which docs says is cumulative so should include update 1), and documentation says to first install the mandatory update then update 10. We did this before migrating, however our

Linux reserve a processor for a group of processes (dynamically)

旧城冷巷雨未停 提交于 2019-12-12 08:55:14
问题 Is there a way to exclude a processor from normal scheduling? That is, using sched_setaffinity I can indicate which processor a thread should run on, but I'm looking for kind of the inverse. That is, I want exclude a given processor from the normal scheduling, such that only processes which have been explicitly scheduled there can run there. I also know that during boot I can limit the processors used by the init process, thus all inherited process. I was however hoping there would be a more

Scheduled method is called during the tests [duplicate]

自古美人都是妖i 提交于 2019-12-12 08:26:26
问题 This question already has answers here : Disable @EnableScheduling on Spring Tests (5 answers) Closed 2 years ago . I'm developing a SpringBoot application using Maven. I've a class with the @Component annotation which has a method m with the @Scheduled(initialDelay = 1000, fixedDelay = 5000) annotation. Here fixedDelay can be set to specify the interval between invocations measured from the completion of the task . I've also the @EnableScheduling annotation in the main class as: