Search code examples
asp.netscheduled-tasksplesk

Using the Plesk Windows Scheduler to call an ASP


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 

Solution

  • 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:

    ![scheduled-task-plesk-12.5-3-fetch-url-cron-style-every-five-minutes.png