scheduled-tasks

Does ScheduledThreadPoolExecutor tie a thread to a task when it is scheduled?

Hi, I'm trying to understand if the ScheduledThreadPoolExecutor class "ties" a thread to a task when it is only scheduled or only during its run?(of course that when it's finished there is no relation).You can see in the link supplied that schedule(..) calls delayedExecute(...) which is ok but then delayedExecute calls prestartCoreThread...

Job Scheduling in Java

I want to run a Java program on a specific date. I am developing a J2EE application that allows you to schedule Selenium test launch (JUnit) on a specified date.. Are there any solutions to do this? can you point me to technology that can help me to do this? any help is appreciated:) thanks for your help ...

Schedule a C# application

Hello, i developed an application to connect to a pop3 mail, read the emails and insert them into a database. I need this service to do the task once an hour. Could somebody please help me with this because i'm stuck? static void Main(string[] args) { TcpClient Server; NetworkStream NetStrm=null; StreamReader RdStrm=null; ...

Accessing windows scheduled tasks in Java

Hi, Is it possible to access the Windows Scheduled Tasks in Java? I essentially want to create a scheduled task from a command interface. My understanding is this should not be a problem from a .NET interface - but as I'm using Java - is this possible? Does an API / jar exist for this so I can create a scheduled task? Thanks ...

Google App Engine: tasks vs threads?

I have a local scientific application that uses threads to process independent pieces of a large calculation. My group would like this to become a web application, so now I'm figuring out how to port it (so please forgive any complete bonehead statements). I'm using Google App Engine to take care of the "web" part of it, but I'm still ...

How to run a windows scheduled task 20 mins after system startup?

In windows scheduled tasks properties, you can only choose "at system startup" without being able to assign a specific delay such as 20 minutes, so I wonder how can I setup a schedule task if I want it to run after the system "fully" starts up(you know how fast this can be in XP)? Hope you guys know the answer. Thanks ...

C# console app that does Excel Interop - failing when running as scheduled Task -System.UnauthorizedAccessException

As the title states, I have a C# console app which uses interop to open Excel and create a new workbook. The code works fine when running the console app via command line. However this exception is thrown when running the console app via a scheduled task: System.UnauthorizedAccessException: Retrieving the COM class factory for component...

How can I setup a system to tell me if a cron job is NOT running fine?

Hi, This is more of an "general architecture" problem. If you have a cron job (or even a Windows scheduled task) running periodically, its somewhat simple to have it send you an email / text message that all is well, but how do I get informed when everything is NOT okay? Basically, if the job doesn't run at its scheduled time or Windows...

Display a C# Form to another user, or all logged-on users

I have a C# console application that runs nightly from a Scheduled Task to perform some maintenance. The application also displays a Form as a splash screen informing anyone on the system that the application is running, and shows the status. To run the application with the correct permissions I need to run the Scheduled Task as anothe...

Java recurrent task, problem with the dates

Hi, I am trying to set a scheduled task in java for running once in a day. The problem is that it is running only in the first day. Any idea y? Thanks log.info("Schdualing midnight task"); Timer timer = new Timer(); Calendar date = Calendar.getInstance(); date.set(Calendar.HOUR_OF_DAY, 23); date.set(Calendar.MINUTE, 3...

How do you schedule execution of a Windows Workflow?

I'd like to move my scheduled tasks into workflows so I can better monitor their execution. Currently I'm using a Window's scheduled task to call a web service that starts the process. Is there a facility that you use to schedule execution of a sequence so that it occurs every N minutes? My optimal solution would: Easy to configure Pr...

Scheduled task to run .aspx page stuck on running

Hey I have a scheduled task going which basically laucnhes a .aspx page with IE Explorer, i know theres better ways of doing this i.e console apps etc but im stuck with this for the moment. So the scheduled task runs fine and launches the ie and the page and the script on the onload on that page runs fine to. But the IE window stays op...

Is there a sophisticated Java WorkQueue API?

I am looking for a WorkQueue API offering the following features: java.util.Queue compatible offers (optional) Set-semantic single- and batch-processing concurrency (of course) scheduling different processing policies wait until next scheduled execution pre-process, if batch size met delayed processing (minimum time in queue, before b...

Any job queue systems that allow scheduling jobs by date?

I have a Django application. One of my models looks like this: class MyModel(models.Model): def house_cleaning(self): // cleaning up data of the model instance Every time when I update an instance of MyModel, I'd need to clean up the data N days later. So I'd like to schedule a job to call this_instance.house_cleaning() ...

sos Job scheduler

Hi all, i am using sos job scheduler which support many language.i accept the shell script to write jobs but i am not a shell script writer.i want to implement a following points in job scheduler: execute a shell script A. script A return "success" if time is between 6:00AM and 3PM.else it return "fail". on "success" execute a shell s...

How do I schedule a Python script to run as long as Windows XP is running?

I wrote a temperature logger Python script and entered it as a scheduled task in Windows XP. It has the following command line: C:\Python26\pythonw.exe "C:\path\to\templogger.py" It writes data to a file in local public folder (e.g. fully accessible by all who login locally). So far, I was able to achieve this objective: 1. Get the ...

run scheduled task with highest privileges

Hi, Im am currently coding an application for auto updating ccleaner. Everything worked well until I enabled UAC.. I am using this project: http://www.codeproject.com/KB/cs/tsnewlib.aspx to schedule the updating process, but when uac is enabled I get every time a message if I would let ccleaner installer make changes to my computer. The...

rails: Scheduled jobs but run at most one at single time

Hi, I have the scheduled job which run every 5 seconds. I'm now using backgroudRB for scheduling. But sometimes, the job may take more than 5 seconds and i don't want more than one job is running at the same time. In .Net, we can use Mutex class, but I'm not sure about what should I use in rails application. Thanks. ...

Windows 2008 schtasks and Task Scheduler Library folders

Hi, I have an old scripts which kicks off a scheduled task: schtasks /end /tn MyTaskName /s HOSTNAME I am now trying to use it on Windows 2008, but it doesn't work. I think it's to do with the fact that the new Task Scheduler allows you to specify subfolders under the main "Task Scheduler Library" and I have put MyTaskName in a subfold...

Notification scheduler and designer in java: implementation recommendations

I'm writing an application for a doctor which should be able to define Notifications that will show up in the patient's computer. These Notifications are scheduled by the doctor, so he/she can choose when it's going to show up. For example: "Remeber to take your pills", show once a week, from January to July 2010. So it would be somethi...