How to auto enable a scheduler job?

P

Pal

I have a scheduled job that runs every two minutes from
9am to 6pm. Some times I have to disable the job around
5:30pm to enable the EOD processing to start immediately.
So, after the EOD I have to manually enable the scheduler
job before leaving home at about 6:30pm. If I forget this
step, the job will not start in the morning 9am. How to
automate to enable the scheduler job? Is it possible to
create another scheduler job to make this job enabled at
6:30pm?
 
J

Jerold Schulman

I have a scheduled job that runs every two minutes from
9am to 6pm. Some times I have to disable the job around
5:30pm to enable the EOD processing to start immediately.
So, after the EOD I have to manually enable the scheduler
job before leaving home at about 6:30pm. If I forget this
step, the job will not start in the morning 9am. How to
automate to enable the scheduler job? Is it possible to
create another scheduler job to make this job enabled at
6:30pm?


See tip 2621 in the 'Tips & Tricks' at http://www.jsiinc.com.



Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
 
L

Lingzhen Zhao

You can schedule a task's start time and end time from
the "Scheduled Task" version 4.71.2195.6704 (mstask.exe),
I think this is the most recent version. In your case,
you can schedule it from 9am to 6pm and runs every two
minutes in the "Scheduled tasks".

Lingzhen Zhao
 
P

Paul R. Sadowski

Appears to be down. Was working two days ago. Wait an hour or two

I think I'm banned, *.verizon.net. I haven't been able to get in for weeks
but now on the strength of your statement telneted to another host and I can
connect just fine.

Me:
Connected to ftp.microsoft.com.
Connection closed by remote host.

Remote host:
226 Transfer complete.
5290 bytes received in 0.13 seconds (38.66 Kbytes/s)
ftp> clos
221 Thank-you for using Microsoft products!
ftp> quit
/export/home/9/sadowski 27-05 7:36pm> lo
 
M

Matt Hickman

Pal said:
I have a scheduled job that runs every two minutes from
9am to 6pm. Some times I have to disable the job around
5:30pm to enable the EOD processing to start immediately.
So, after the EOD I have to manually enable the scheduler
job before leaving home at about 6:30pm. If I forget this
step, the job will not start in the morning 9am. How to
automate to enable the scheduler job? Is it possible to
create another scheduler job to make this job enabled at
6:30pm?

Is that the only task run by the scheduler during that time?
If so, you can write a vbscript to pause the scheduler service,
sleep for an hour or so, then continue the service.

--
Matt Hickman
Ring trains were all right, but spaceships were
his love-even a dinky like the moon shuttle.
- Robert A. Heinlein (1907-1988)
_Starman Jones_ (c. 1953)
 
P

Paul R. Sadowski

Paul R. Sadowski said:
I think I'm banned, *.verizon.net. I haven't been able to get in for weeks
but now on the strength of your statement telneted to another host and I
can connect just fine.

Forced an IP change and now I can get in. I'm not the only on affected.
Several other Verizon usbscribers were too but it was inconsistent as to
their location.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top