Affiliate Marketing
Forum Search


Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)  
Old 24-01-08
Big Member
 
Join Date: Jan 2004
Location: Surrey
Posts: 56
Thanks: 5
Thanked 0 Times in 0 Posts
Renners is an unknown quantity at this point
  Scheduling a Web Page to Open (and Close) on a Win 2003 Server

I'm in the process of moving one of my sites to a dedicated server from a reseller account thus giving me more control In my reseller account I used to use the traffic hitting a page to run a mailing list by running the script if it had not run yet. I did this as I'm tight and didn't want to pay the monthly charge the WPP raised for scheduling jobs.

However now I've got control of the server I can schedule a job to run every night to do this task, the issue is what is the best way to run this task on a Win 2003 server.

The task to be run is a email reminder service that selects the relevant recipients from a database list and then constructs and sends the email using Aspmail

As all the script is already in an asp page I figured the easiest way is to open up IE and load the page and then close it although my initial attempts can only open the page thus I'll end up with loads of IE pages open on the server.

Can any one out there suggest a way to do it that may be more eliquent! or suggest a way to close the page once the script completes.

Thanks,
Renners
__________________
Contact Us here: BSS Details
Remember; the grass is never greener on the other side, merely where you tend to it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 25-01-08
Registered User
 
Join Date: Nov 2003
Location: London
Posts: 524
Thanks: 0
Thanked 4 Times in 4 Posts
moredial is an unknown quantity at this point
  Re: Scheduling a Web Page to Open (and Close) on a Win 2003 Server

Ask your host.

Isn't there the equivalent of a cron job on windows servers?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 25-01-08
Barry's Avatar
Typing with both fingers.
 
Join Date: Aug 2003
Location: In Fishguard with my lovely coracle.
Posts: 2,929
Thanks: 100
Thanked 22 Times in 16 Posts
Barry seems to know their stuff
  Re: Scheduling a Web Page to Open (and Close) on a Win 2003 Server

I cant remember quite how I have it as I am a dufus but I have my tasks set up with the windows 'schedule task' application and call my php scripts via the command prompt as they dont time out and its closes when it finishes.

Ta
__________________
Mirror Ten Ltd :: Free Codes
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 25-01-08
Registered User
 
Join Date: Jun 2006
Posts: 174
Thanks: 0
Thanked 1 Time in 1 Post
jonsp is an unknown quantity at this point
  Re: Scheduling a Web Page to Open (and Close) on a Win 2003 Server

Hi,
The easiest way would be to write a windows script host (.vbs) script then schedule it with task scheduler. If you can start with ASP VB Script page that does what you need just remove all the server calls ie server.createobject and obviously anything that sends output to the screen - response.write etc save with a .vbs extension. To test it locate the file in Windows Explorer and doube click it - whatever you want to happen should happen.

Once the script works fire up Task Scheduler on your serverand schedule the script to run as needed.

Cheers,
Jon
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 25-01-08
Big Member
 
Join Date: Jan 2004
Location: Surrey
Posts: 56
Thanks: 5
Thanked 0 Times in 0 Posts
Renners is an unknown quantity at this point
  Re: Scheduling a Web Page to Open (and Close) on a Win 2003 Server

Quote:
Originally Posted by jonsp View Post
...remove all the server calls ie server.createobject ...save with a .vbs extension. To test it locate the file in Windows Explorer and doube click it - whatever you want to happen should happen.
Jon, thanks for the suggestion, not being a expert on application programming what would i convert the server calls into as I need to interrogate the db for the records to be used and then create a server mail object (as ASPMail states you do) to email out .
__________________
Contact Us here: BSS Details
Remember; the grass is never greener on the other side, merely where you tend to it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 25-01-08
Registered User
 
Join Date: Nov 2007
Posts: 59
Thanks: 3
Thanked 0 Times in 0 Posts
eymedia is an unknown quantity at this point
  Re: Scheduling a Web Page to Open (and Close) on a Win 2003 Server

Hi,

Just change Server.CreateObject to CreateObject

:-)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 25-01-08
Big Member
 
Join Date: Jan 2004
Location: Surrey
Posts: 56
Thanks: 5
Thanked 0 Times in 0 Posts
Renners is an unknown quantity at this point
  Re: Scheduling a Web Page to Open (and Close) on a Win 2003 Server

Quote:
Originally Posted by eymedia View Post
Hi,

Just change Server.CreateObject to CreateObject

:-)
now that deserves a D'oh
__________________
Contact Us here: BSS Details
Remember; the grass is never greener on the other side, merely where you tend to it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Instant Win4Now; Increase in Commission Rates Sheenu DGM Affiliates 0 03-04-06 11:25 AM


Affiliate Marketing RSS Feeds - Contact Us - Affiliate Marketing - Archive - Privacy Statement - Top

Content Relevant URLs by vBSEO 3.2.0 RC7