Reputation: 5012
I want to run a schedule to call an asp page.
I add an asp page to project and add function to load page.
I use this tutorial for add scheduler in plesk, and add vb script to it.
When i go to www.mysite.com/schedule.aspx page , it run function. But when i run Scheduled Tasks in plesk, don't run function.
Call RunIt()
Sub RunIt()
Dim RequestObj
Dim URL
Set RequestObj = CreateObject("Microsoft.XMLHTTP")
'Request URL...
URL = "my site address/schedule.aspx"
'Open request and pass the URL
RequestObj.open "POST", URL , false
'Send Request
RequestObj.Send
'cleanup
Set RequestObj = Nothing
End Sub
Upvotes: 0
Views: 701
Reputation: 10312
There is possible to create task for every 5 minute by "cron style" = "0,5,10,15,20,25,30,35,40,45,50,55 * * * *"
You can create domain level task with type "Fetch a URL" where you can request your page:
Upvotes: 3