For example, how to call a php script in Python. Failed to execute both OS. system and subprocess. call. The corresponding statement is as follows: subprocess. call (& #039; usrbinphprootaddpass. php & #039; + ftp + & #039; & #039; + ftppass) has no error message,... for example, how to call a php script in Python. Failed to execute both OS. system and subprocess. call.
The statement is as follows:
Subprocess. call ('/usr/bin/php/root/addpass. php' + ftp + ''+ ftppass)
There is no error message, but the execution failure can be determined based on the Program Logic.
Reply content:
For example, how to call a php script in Python. Failed to execute both OS. system and subprocess. call.
The statement is as follows:
Subprocess. call ('/usr/bin/php/root/addpass. php' + ftp + ''+ ftppass)
There is no error message, but the execution failure can be determined based on the Program Logic.
The solution is as follows:
Subprocess. call ('/usr/bin/php/root/addpass. php' + ftp + ''+ ftppass, shell = True)
Can I run php/root/addpass. php ftp ftppass directly on the console?
In addition, this is not necessarily the correct method based on the execution content.