should this work?
Hi,
Is there anything obviously wrong with the process described here? I have carefully recreated all the steps but have not had any success. Is it me? Thanks, Brian H. Uxbridge Ont. |
Quote:
With no information, we cannot guess as to what could be your problem. Short answer to your question: no, nothing obviously wrong (other than the fact you're trying to DO that at all, which is incredibly insecure). |
That tutorial left out a few details.
What distribution and version are you running? Any recent version is using python version 3 which the interpreter is called python3. Whether the web server environment includes /usr/bin or has access to the location where the python script exists depends on the distribution. Code:
subprocess.run(["/usr/bin/python3", pythonScriptPath]); Code:
python3 /path_to/python_script |
That is not the right approach. I mean you do not need to ask us to review that page, but what you have made. So please give us more details about those steps.
Exactly what did you try, what's happened ... http://www.catb.org/~esr/faqs/smart-...html#beprecise |
Let's clarify:
The Python [u]subprocess[/b] system does, indeed, allow you to "fork" child processes within a single computer environment, and conveniently do things like "collect their results." However, the quoted article is "mightily misleading(!)" when it goes on to say this: Quote:
Quote:
It is one thing to "conveniently execute subcommands on your own computer." (Which subprocess is specifically designed to do.) But, entirely a different thing to "execute a remote procedure call" (by whatever means ...) to execute them on another. Of course, since you have not yet entirely described your scenario in your original post, all of what I am saying is "just a guess." |
Quote:
|
Yep, complete nonsense. Probably AI-generated.
|
All times are GMT -5. The time now is 03:06 PM. |