Intro:
This kb will show you how to setup a type of a cron job for asp.net and php pages using Scheduled Tasks in Plesk
Steps:
- Navigate to Scheduled Tasks under desired site
- Select the System User
- Click Schedule New Task
- Enter in a Description
- Under Path to executable file
-
- You will need to add the path to powershell: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
- Under Arguments
-
- Replace the page with yours, either .asp/ .php/ .aspx
- -c “(new-object system.net.webclient).downloadstring(‘http://www.demo-account.com/do_something_cool.aspx’)”
- Click OK, and Done. Click Run Now to test.