Solved

Automated ASP script *Urgent*

Posted on 2004-04-27
7
175 Views
Last Modified: 2010-04-13
Maybe a dumb question... and maybe in the wrong forum.

I've got an ASP script I've written ... and I need it to run about every 1 or 5 minutes.  Is the only way to do this a scheduled task to open a specified file?  Or is there a fancier way to run this without doing that?

Thanks so much.
0
Comment
Question by:BeamerCola
  • 4
  • 3
7 Comments
 
LVL 16

Accepted Solution

by:
JamesDS earned 500 total points
ID: 10937442
BeamerCola

If you want it free then yes, use control panel\scheduled tasks or look at the AT.EXE command (does the same thing)

If the ASP script runs on a web server, then you could add a META REDIRECT page header to the top of it and have it call itself after 5 minutes - which would do the same thing.


Cheers

JamesDS
0
 

Author Comment

by:BeamerCola
ID: 10940171
What are my paid options?  And how much?

Thanks so much
Beamer
0
 
LVL 16

Expert Comment

by:JamesDS
ID: 10941854
BeamerCola
There are a number of scheduling options. You can look at specific dedicated schedulers, but these are largely the same as the AT command system and are cheap. You can run scripts using monitoring tools, such as Microsoft Operations Manager and BMC patrol - very expensive and overkill for most smaller installations.


Cheers

JamesDS
0
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 

Author Comment

by:BeamerCola
ID: 10942425
Is it possible to build like a Service or something that does it for me?  I guess what I'm trying to steer away from is having this on the web, and then just opening the browser window to run it.  I'd like for the server to actually run it itself outside of IIS .... if that's even possible.
0
 
LVL 16

Expert Comment

by:JamesDS
ID: 10946949
BeamerCola
If its an ASP script then it requires a web server by definition - "Active Server Page".

If its a bit of VB with an ASP/HTML wrapper then it can be converted and run as a VBScript using cscript.EXE or wscript.exe

My advice is convert it to a bit of pure VBScript/JScript and run it using the Task Scheduler service - it will then run in the same way as a service would - almost.

If you want it to be a pure service you will need to look at SRVANY.EXE and SC.EXE from the resource kit. But even if you turn it into a service it will still need converting to pure VBScript/JScript and it will still ned scheduling so you haven't really solved your problem.

Cheers

JamesDS
0
 

Author Comment

by:BeamerCola
ID: 10950663
Alright I'll just go ahead and use it through IIS.  I appreciate all your help.

Beamer
0
 
LVL 16

Expert Comment

by:JamesDS
ID: 10950914
BeamerCola
Welcome, glad to help

Cheers

JamesDS
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Scenario: Your operations manager has discovered an anomaly in your security system. The business will start to suffer within 15 minutes if it is a major IT incident. What should she do? We have 6 recommendations for managing major incidents (https:…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now