Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Re-run the same script

Status
Not open for further replies.

spazman

Programmer
May 29, 2001
500
CA
I have a script that just waits for an hour and then runs through some processes. The problem is that over a short period of time it consumes more memory, at start up yesterday it was using 3,064 of memory it has run the code agian every hour since and is now using 8,000 +. I am closing my connections, setting vars back to nothing and closing recordset etc. Basically what it does it query a table to see if there are any outstanding issues, is there are it email thoise people and reminds them, it opens a html templete email and fires it off. Would the memory usage be better if I just exited the script and ran it every hour using scheduler (which I never find to be reliable) Or re ran the script file it from itself.
 
What problems have you had running Task Scheduler?

I ran a complex suite of scripts for over a year that were fired-up by Task Scheduler (on W2k Server) at various times of the day - including a script that ran every 30 minutes) without one glitch.

The Task Scheduler route would seem the better option, rather than putting the script to sleep for an hour.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top