Answer the question
In order to leave comments, you need to log in
Why does PHP launch an interactive console instead of a script?
There was an autorun of the php script through the task scheduler, everything worked, now suddenly instead of running the script this opens: Task
settings:
And when you start it manually via the console, everything is ok:
What is this nonsense?
Windows 10 x64, PHP 7.2.0b1, E:\Program Files\PHP 7\ specified in path.
Answer the question
In order to leave comments, you need to log in
It was in PHP (this is a known bug) - rolled back from PHP 7.2.0b1 to 7.1.7 b everything worked as it should. However, it is not clear what is the difference for php.exe between running the command manually and running the Scheduler.
Just conducted this experiment - the result - worked.
The only thing is that my command is different from yours.
1) I did not enter the path, I specified the working directory (when creating the task, you can do this)
2) I explicitly indicated which program to use
I got:
1) Program name: php.exe
2) Passed parameters: "E:\ test\test.php"
3) Working folder E:\PHP-7\
Opened the list of tasks, found the required task, looked at the "Actions" tab for the command that is being executed (I got 'php.exe "E:\test\test. php"' )
The command worked great.
PS nothing happens just like that - who did what? Perhaps the task hung and the new one did not start,
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question