Hi All,
I am managing a Windows server but sadly I don't have much experience with windows (or sys admin in general). I know enough to make myself dangerous :)
I've set up CLI tasks plenty of times on Linux boxes and have then scheduled via CRON.
I'm trying to do the same on this windows machine but it just doesn't seem to be playing fairly :)
My main issue is how to execute the CLI Task from the command line.
"C:\Program Files (x86)\PHP\v5.4\php.exe" C:\inetpub\wwwroot\invitro.multisite\framework\cli-script.php UpdateSearchIndexTask data_area_id=ivtnz
Unfortunately with this I get an error message saying that that Line 1 Character 43 is an unexpected token.
If I leave out the double quotes then I get an error message about the (x86) bit of the code.
If I sound everything in double or single quotes it just seems to print out the command to the screen and doesn't execute anything.
There is no information on the page below for how to call a CLI Task from the windows command line.
https://docs.silverstripe.org/en/3.4/developer_guides/cli/
Any help is appreciated.
Thanks,
Colin