scheduled-tasks

Batch File running fine if double-clicked but does not run in Windows Scheduled Task

自作多情 提交于 2019-12-20 07:26:49
问题 I have an archive.pst file on my C: drive that I use in outlook to backup my email. But my C: is not backed up each night. So I'd like to copy the .pst file to my network drive so it will consistently be backed up. I do not want outlook to open the .pst file directly from the network drive for a variety of reasons. Therefore I am trying to create a scheduled task that will copy my .pst file to a network location each day. The batch file below works perfectly if double-clicked. If I try to run

Application throws an error when launched from task scheduler

时光总嘲笑我的痴心妄想 提交于 2019-12-20 07:16:13
问题 I have a custom application which uses Microsoft.Office.Interop.Excel.Application to open and save excel file. I have a batch which fires the app with all the required parameters. That batch completes the task successfully when run manually but when I tried to schedule the same in task scheduler I got the following error msg logged from ma app: Microsoft Office Excel cannot access the file 'E:\tasks\extractSPdocs\downloads\Last_Minute_IT_DATA_DUMP_201404250000.xls'. There are several possible

Running master bat file in invisible mode

故事扮演 提交于 2019-12-20 06:25:20
问题 I have a master.bat file which has... call file1.bat call file2.bat call file3.bat call file4.bat I want to schedule it on my Windows server 2008 to run in silent/invisible mode.I'm looking for some way to run this master.bat without anything visible to the user (no window, CMD interface ,no taskbar name etc..) I don't want to install any batch to exe software. I tried by changing the User running the task to "SYSTEM" and it has the work done but I can't do this in actual. I have found that

How to stop/start an EC2 instance on a schedule within an autoscale group without terminating the instance?

◇◆丶佛笑我妖孽 提交于 2019-12-20 06:12:29
问题 If you have have an autoscaling group, how do you go about start/stopping the instances ( not launch/terminate) ? The default behaviour is only for launching and terminating instances, but since we also get cost savings for just stopping an instance, we would rather allow the instance to persist. For our purposes, we have a QA environment and we want to start/stop several autoscaling groups daily to save money when the development team leaves the office for evenings and weekends. So how to

Scheduled Tasks not running - Coldfusion Server Administration

ε祈祈猫儿з 提交于 2019-12-20 01:41:13
问题 I have a series of scheduled tasks that all run at various times of the day. Since the migration from Coldfusion version 7 to 10, these tasks have stopped running. When I check the box, that outputs the results to a file, I get a text file that says nothing more than "Connection Failure". I have tried everything imaginable regarding the username and password for the task. It makes no difference. When I run the CFM page in my browser, the page works correctly and generates an email just like

How to schedule task in java code

强颜欢笑 提交于 2019-12-19 19:54:07
问题 I know how to schedule task in spring context: <task:scheduler id="taskScheduler" pool-size="1" /> <task:scheduled-tasks scheduler="taskScheduler"> <task:scheduled ref="jobWatcher" method="run" cron="*/10 * * * * ?" /> </task:scheduled-tasks> But cron of my task can by configured during runtime so I need to create task in java code. In spring docs: http://docs.spring.io/spring/docs/3.0.x/reference/scheduling.html is something like this: scheduler.schedule(task, new CronTrigger("* 15 9-17 * *

Simple example for 'ScheduledService' in Javafx

一个人想着一个人 提交于 2019-12-19 17:34:57
问题 I am a student and learning JavaFX since a month. I am developing a application where I want a service to repeatedly start again after its execution of the task. For this I have come to know that 'ScheduledService' is used. So can anybody please explain the use of scheduledservice with simple example and also how it differs from the 'Service' in JavaFX. Thanks ;) EDIT : How can I define that this ScheduledService named DataThread should be restarted every 5 seconds ? public class DataThread

Return code of scheduled task prefixed with 0x8007000 in list view, registered as 0 in the event log

匆匆过客 提交于 2019-12-19 10:49:29
问题 I am currently trying to setup monitoring of windows scheduled tasks in Zabbix. It seemed easy enough to just monitor the Microsoft-Windows-TaskScheduler/Operational event log filtered by 201 events and regexing on the return code, but when I started simulating errors to test the monitoring, nothing happened. It turns out that all our windows 2012 servers always log "return code 0" in the event log, even though it actually, sort of, displays it correctly in the Task Scheduler list view. When

Objectify and TimerTask: No API environment is registered for this thread

不羁的心 提交于 2019-12-19 08:06:09
问题 I'm trying to get a TimerTask set up to remove entries from Google App Engine's dataStore periodically. So I set up a ServletContextListener with a Timer . Inside the contextInitialized , I have registered my Objectify classes: ObjectifyService.register(Person.class); However, when the task actually runs, it complains that no API environment has been set up: Exception in thread "Timer-0" java.lang.NullPointerException: No API environment is registered for this thread. at com.google.appengine

Objectify and TimerTask: No API environment is registered for this thread

与世无争的帅哥 提交于 2019-12-19 08:05:09
问题 I'm trying to get a TimerTask set up to remove entries from Google App Engine's dataStore periodically. So I set up a ServletContextListener with a Timer . Inside the contextInitialized , I have registered my Objectify classes: ObjectifyService.register(Person.class); However, when the task actually runs, it complains that no API environment has been set up: Exception in thread "Timer-0" java.lang.NullPointerException: No API environment is registered for this thread. at com.google.appengine