I want to sending data from php frontend to python. I have the following php code.
shell_exec ("sudo python /python/ba10e.py >/dev/null 2>&1 &");
With the above code, sending data to python works, However when python program asks for a choice mentioned below:
The money that you input is incorrect, you want to continue?
There are two choices, "Y" and "N".
How should implement the part of sending value to Python program when "Y" is entered. Is it possible to do so?
Thanks and regards!