troubleshooting Question

Schedule tasks to run more frequently than once per minute

Avatar of jaldinger
jaldinger asked on
Windows Server 2003
3 Comments2 Solutions8746 ViewsLast Modified:
Hello,

I'm trying to schedule a task to run every 15 or 30 seconds. It's a quick and easy polling task that usually only takes 1 second to complete, 5 at most if any service fails. I've been using SCHTASKS to schedule it to run every minute, but have been unable to increase the interval to something less than a minute. Here's what I've been trying, which does not work because it sets the task to run every full minute anyway, regardless of the 15 second setting in the start time:

C:\>schtasks /create /tn "Service Monitor xx_xx_15" /tr "service-monitor.exe" /sc MINUTE /st 10:10:15

When I submit the above command the task gets scheduled for 10:10:00, as you can see here:

C:\>schtasks /query
...
Service Monitor xx_xx_15             10:10:00 AM, 9/14/2006
...

Please help! Thank you!

Joerg.
ASKER CERTIFIED SOLUTION
ryangorman

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros