I need to set a scheduling task (Windows Hosting). I configured like below
Path to executable file = C:Program Files (x86)ParallelsPleskAdditionalPleskPHP5php.exe
Arguments = C:Inetpubvhostsexample.comhttpdocsaccompaliveScheduler.php
Accompalive is the root folder name and aspiresoftwareconsultancy is the domain name. I tried with example.com also as domine name but schedular is not running. I set each 2 minutes every hour, day, week, month, year as timing. I also set one notification email address. But I am getting email with an error file having message "Could not open input file: C:Inetpubvhostsaspiresoftwareconsultancy.tldhttpdocsaccompaliveScheduler.php"
. Did I set it correctly or need some changes? thank you.
2
Answers
This is almost a year now.
But As there is no answer to this question, Here is what I’ve found:
If the script can be executed with an interpreter (e.g., PHP or Perl) and does not require parameters defined in an HTTP request, create a new scheduled task that calls the script interpreter with the path to the script as an option
You can do it like:
For More See: http://kb.sp.parallels.com/en/115292
Hope it helps :).
I used your code and it is working for me.
If you have validation on
scheduler.php
or wrong code then it can not work.When I send some data using get method (like
Arguments = C:Inetpubvhostsexample.comhttpdocsaccompaliveScheduler.php?id=12
) then I also got text file(utility output) in email where they said that"Could not open input file"
.