Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > NZ Computing > help running windows services at a particular time.

Reply
Thread Tools

help running windows services at a particular time.

 
 
Enkidu
Guest
Posts: n/a
 
      10-09-2003
On Thu, 9 Oct 2003 16:44:59 +1300, "T.N.O." <> wrote:
>
>"SNOman" wrote
>> Why not just use a net start and net stop in a batch file which is then
>> scheduled using task scheduler?

>
>AFAIK, task scheduler needs someone logged in
>
>Oops, forgot to mention OS, this is on Win2k pro
>

No, task scheduler doesn't need someone logged in. When you set up a
command to run under scheduler you have to say what account is to be
used. Usually the default (System) account is good enough.

So.....
Set up a batch file as SNOman suggests to start the process, then a
second one to stop it. Let it run under the default System account.

Cheers,

Cliff
--

The complete lack of evidence is the surest sign
that the conspiracy is working.
 
Reply With Quote
 
 
 
 
Enkidu
Guest
Posts: n/a
 
      10-09-2003
On Thu, 9 Oct 2003 17:28:47 +1300, Steven H <>
wrote:
>
>Create a "master service", this will get loaded and read off
>instructions form a config file.
>

.....snip
>
>not to hard to do, .NET makes things simplar.
>

It's a lot easier to schedule a couple batch files with net start and
net stop commands.

Cheers,

Cliff
--

The complete lack of evidence is the surest sign
that the conspiracy is working.
 
Reply With Quote
 
 
 
 
Enkidu
Guest
Posts: n/a
 
      10-09-2003
On Thu, 09 Oct 2003 19:00:37 +1300, "AD." <> wrote:

>On Thu, 09 Oct 2003 18:32:40 +1300, Armpit wrote:
>
>> Use the "at" command, which IS available on win2000. Within the script you
>> run, use "net start <servicename>" at the start of the script, and "net
>> stop <servicename>" at the end of your script.

>
>Or better yet two scripts (one start and one stop script) scheduled to run
>at their respective times.
>

IS the 'at' command part of Win2K? I thought that it came in the
resource kit. Or maybe the support tools. I posted this earlier, but
now you've got me thinking. Maybe I'm thinking of NT4? My apologies if
I got it wrong in the earlier post.

Cheers,

Cliff
--

The complete lack of evidence is the surest sign
that the conspiracy is working.
 
Reply With Quote
 
Jay
Guest
Posts: n/a
 
      10-09-2003
Rob wrote:

>
>
> In news:bm2ftt$hm4nl$,
> Jay roused me from near catatonia by blurting:
>> T.N.O. wrote:
>>
>>> Anyone got any ideas on how to run a service(any service) at a
>>> particular time? and then stop at a later time...
>>>
>>> I dont have a great need for this, but I want to know how to do it.
>>>
>>> I also want it to do it whether someone is logged in or not, I
>>> assume I can do some sort of schedule tasks type thing, only not
>>> associated with a login?

>>
>> "crontab" or "at"

>
> The subject mentioned windows, which tends to have trouble running *nix
> commands.


No it doesn't. It can run lots of them.
Even Bill Gates said that Windows is more-or-less unix.

>
> I'll write that again. The subject mentioned windows, which tends to have
> trouble running


Try thinking again too.

 
Reply With Quote
 
AD.
Guest
Posts: n/a
 
      10-09-2003
On Thu, 09 Oct 2003 20:01:52 +1300, Enkidu wrote:

> IS the 'at' command part of Win2K? I thought that it came in the resource
> kit. Or maybe the support tools. I posted this earlier, but now you've got
> me thinking. Maybe I'm thinking of NT4? My apologies if I got it wrong in
> the earlier post.


Yup its the command line interface to the (Task) Scheduler service. It has
always been part of the base NT install right up to Win2003. With NT4 and
earlier it was the only way of scheduling stuff in the base install (no
GUI for that).

at /? will tell you how to use it.

Tip: It's also a handy way to get LOCALSYSTEM rights for some of those
things that even Administrator couldn't do. If the scheduler service is
running as LOCALSYSTEM, use 'at' to schedule running 'cmd' in the near
future - voila a command shell running as LOCALSYSTEM.

Not bad for a penguin ****er eh?

Cheers
Anton
 
Reply With Quote
 
Nathan Mercer
Guest
Posts: n/a
 
      10-10-2003
"Enkidu" <> wrote in message
news:...
> >> Use the "at" command, which IS available on win2000. Within the script

you
> >> run, use "net start <servicename>" at the start of the script, and "net
> >> stop <servicename>" at the end of your script.

> >
> >Or better yet two scripts (one start and one stop script) scheduled to

run
> >at their respective times.
> >

> IS the 'at' command part of Win2K? I thought that it came in the


AT has been part of the system since NT3.5 and maybe even earlier, my memory
from 8 years ago is **** at the best of times

> resource kit. Or maybe the support tools. I posted this earlier, but
> now you've got me thinking. Maybe I'm thinking of NT4? My apologies if
> I got it wrong in the earlier post.


You're thinking of WINAT, the GUI for AT


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Running Code At A Particular Time jagadesh Java 3 10-04-2008 06:07 PM
Start Web services as Windows Services start Anup ASP .Net 1 05-09-2006 11:44 AM
What is the difference between C# windows Services and web services in vs.net? Nick ASP .Net 1 09-12-2005 02:33 PM
Running asp page as particular user Peter ASP General 2 08-19-2004 03:44 PM
Help needed in running a c++ program as Windows Services parthan C++ 2 10-13-2003 12:03 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57