Print Page | Close Window

cron script

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=7453
Printed Date: 01 April 2026 at 1:00am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: cron script
Posted By: Nathan
Subject: cron script
Date Posted: 21 November 2003 at 10:02am

can anyone help me with a cron script?

I have written the following, which lists those who are viewing my forum:

http://agni.gearhost.net/sql/whos_online2.asp - http://agni.gearhost.net/sql/whos_online2.asp

(ignore the poll part)

I want to include the above script on every page of my site - to show who is online. But when the site is very busy, the server cannot cope. My idea, is to write a cron script that will run once every 5 mins or so, and write the HTML for who is currently online to a simple inc page. Then each page can just include that. I know there would be a slight time lag (delay) but I would be happy with that. Any advice?

Thanks

 




Replies:
Posted By: Bluefrog
Date Posted: 24 November 2003 at 8:42am

This is kindof the wrong place to ask about cron scripts. There are better places for that. Most people here work with MS mostly, and probably don't even know what it is.

For stuff like that, I would run the script every so often (5 min sounds ok) but rewrite the *.inc file with the filesystemobject. That way it is always fresh, and you save CPU time.  

Also, some code would help.

 



-------------
http://renegademinds.com/" rel="nofollow - Renegade Minds - Guitar Software http://renegademinds.com/Default.aspx?tabid=65" rel="nofollow - Slow Down Music



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net