Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Automated ASP script *Urgent*

Posted on 2004-04-27
7
Medium Priority
?
181 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 16

Accepted Solution

by:
JamesDS earned 2000 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
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 

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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

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…
If you’re involved with your company’s wide area network (WAN), you’ve probably heard about SD-WANs. They’re the “boy wonder” of networking, ostensibly allowing companies to replace expensive MPLS lines with low-cost Internet access. But, are they …
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

715 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