Using Scheduled Tasks to Call PHP/ASPX Pages

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.
Updated on November 11, 2019
Was this article helpful?

Related Articles

Customer Support Portal
Can't find the answer you're looking for? Don't worry we're here to help!
CONTACT SUPPORT