Sign in to follow this  
Followers 0
ALW

Running Script When Not Logged IN

2 posts in this topic

I wrote a script - that needs to start running at 6:00 AM and end at 7:00 PM. I have controlled for the running period (6 AM - 7 PM) with a while loop and checking the time and deciding what to do based on the time. However, how can I start the script when the system boots - almost like - if not as a service. Any ideas or help would be appreciated.

Share this post


Link to post
Share on other sites



checking the time and deciding what to do based on the time.

One option, use the task scheduler with a compiled version of your script. Set the allowed run time for the task to be an hour. Use case statements for your different times. If your only doing a couple of events in that hour then schedule them as individual tasks. Otherwise, do a loop and allow the scheduler to kill it off at 7. This way you don't have to worry about the server starting, editing the registry for startup, and other admins would go there first to look anyway.

Just an idea.

Casey

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0