You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Platform: Linux 4.4.0-17763-Microsoft docs: Fix mixed content issues #379-Microsoft Wed Mar 06 19:16:00 PST 2019 x86_64 x86_64 x86_64 GNU/Linux
Subsystem: child_process.exec
Software spec:
Windows 10 WSL running Ubuntu 18.04.2 LTS
Apache Server 2.4.29 (Ubuntu)
Xming X Server 6.9.0.31 (Windows 10)
Firefox Quantum 67.0 (64-bit for Ubuntu)
Node.js v8.10.0 for Ubuntu
The attached TestExec.html file runs TestExec.js, which executes TestExec.bash.
The user enters a string, which is written to TestExec.txt by the Bash script.
TestExec.bash is executed via child_process.exec.
TestExec2.js is a modified form of TestExec.js, with no dependencies on the HTML document.
TestExec2.js runs correctly from the command line, "node TestExec2.js".
However, TestExec.js hangs indefinitely, when child_process.exec("bash TestExec.bash arg") is called from Firefox.
(Note that the "puts called" message is never displayed in Firefox, indicating that puts() is never executed from child_process.exec [see TestExec_run.jpg screenshot])
Therefore, child_process.exec works at the command line, but not from Firefox, via the
TestExec.js script.
See 4 attached files:
The text was updated successfully, but these errors were encountered:
However, TestExec.js hangs indefinitely, when child_process.exec("bash TestExec.bash arg") is called from Firefox.
You seem to be confusing Node.js with your browser. They're two completely separate things. child_process is not a thing in browsers, just like document isn't in Node.js.
I'm closing this out as not-a-bug. If you still have questions, please open an issue in the nodejs/help repo.
Software spec:
The attached TestExec.html file runs TestExec.js, which executes TestExec.bash.
![TestExec html_jpg](https://user-images.githubusercontent.com/51098207/58480339-cb857080-811f-11e9-8b92-f1d4f0f91d68.JPG)
![TestExec js_jpg](https://user-images.githubusercontent.com/51098207/58480372-d9d38c80-811f-11e9-8b51-43ebf0143484.JPG)
![TestExec2 js_jpg](https://user-images.githubusercontent.com/51098207/58480376-dc35e680-811f-11e9-9633-95e8e13d645c.JPG)
![TestExec bash_jpg](https://user-images.githubusercontent.com/51098207/58480386-e0620400-811f-11e9-9011-0232cd3a3051.JPG)
![TestExec_run](https://user-images.githubusercontent.com/51098207/58481934-076e0500-8123-11e9-8d16-ddfe90a420b0.JPG)
The user enters a string, which is written to TestExec.txt by the Bash script.
TestExec.bash is executed via child_process.exec.
TestExec2.js is a modified form of TestExec.js, with no dependencies on the HTML document.
TestExec2.js runs correctly from the command line, "node TestExec2.js".
However, TestExec.js hangs indefinitely, when child_process.exec("bash TestExec.bash arg") is called from Firefox.
(Note that the "puts called" message is never displayed in Firefox, indicating that puts() is never executed from child_process.exec [see TestExec_run.jpg screenshot])
Therefore, child_process.exec works at the command line, but not from Firefox, via the
TestExec.js script.
See 4 attached files:
The text was updated successfully, but these errors were encountered: