V
V
Vitaliy Orlov2015-08-26 00:54:31
PHP
Vitaliy Orlov, 2015-08-26 00:54:31

What does "Attempted to write to a non-existent pipe" mean when running an application on windows from php?

Greetings!
When trying, execute the following php script:

$cmd = 'd:\test.bat';
pclose(popen("start /B \"\" ". $cmd, "r"));

in test.bat:
@echo off
echo Test

CLI hangs with messages:
ΠŸΠΎΠΏΡ‹Ρ‚ΠΊΠ° записи Π² Π½Π΅ΡΡƒΡ‰Π΅ΡΡ‚Π²ΡƒΡŽΡ‰ΠΈΠΉ ΠΊΠ°Π½Π°Π».
ΠŸΠΎΠΏΡ‹Ρ‚ΠΊΠ° записи Π² Π½Π΅ΡΡƒΡ‰Π΅ΡΡ‚Π²ΡƒΡŽΡ‰ΠΈΠΉ ΠΊΠ°Π½Π°Π».
ΠŸΠΎΠΏΡ‹Ρ‚ΠΊΠ° записи Π² Π½Π΅ΡΡƒΡ‰Π΅ΡΡ‚Π²ΡƒΡŽΡ‰ΠΈΠΉ ΠΊΠ°Π½Π°Π».
ΠŸΠΎΠΏΡ‹Ρ‚ΠΊΠ° записи Π² Π½Π΅ΡΡƒΡ‰Π΅ΡΡ‚Π²ΡƒΡŽΡ‰ΠΈΠΉ ΠΊΠ°Π½Π°Π».

due to launch with the /B key, Ctrl+C does not work. Only "Ctrl+Break, Enter" helps, while the following gets into the console:
...
ΠŸΠΎΠΏΡ‹Ρ‚ΠΊΠ° записи Π² Π½Π΅ΡΡƒΡ‰Π΅ΡΡ‚Π²ΡƒΡŽΡ‰ΠΈΠΉ ΠΊΠ°Π½Π°Π».
^C
"β™₯" Π½Π΅ являСтся Π²Π½ΡƒΡ‚Ρ€Π΅Π½Π½Π΅ΠΉ ΠΈΠ»ΠΈ внСшнСй
ΠΊΠΎΠΌΠ°Π½Π΄ΠΎΠΉ, исполняСмой ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠΎΠΉ ΠΈΠ»ΠΈ ΠΏΠ°ΠΊΠ΅Ρ‚Π½Ρ‹ΠΌ Ρ„Π°ΠΉΠ»ΠΎΠΌ.

Of course, I'm very glad that Windows shows me love and sends hearts ... but I can not figure out what the problem is ..
Previously, everything worked fine. I can assume that everything will work on a "clean" Windows. Presumably, the problems started after updating the video card drivers with its native NVIDIA Geforce Experience utility, which at least lost the PATH environment variable, deleting everything and writing down only its path there. I restored it, focusing on the laptop, but mb that was not all ..
If anyone came across, please tell me what the problem is, where to dig.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sawa4, 2016-07-04
@sawa4

Good time!
I have a similar situation with Laravel commands, in particular php artisan backup-commands:database
Have you figured out what that would mean?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question