Hello,
I need to run python code in Ubuntu 17.04. However the python code uses hard coded variables. It is very simple to generate the variables using Lazarus with FPC. The python code typically is run in terminal mode.
For example: sudo python measureVNA.py r50
There are several questions to answer when run:
1. I need to enter the password
2. I need to answer "y" to continue.
3. I need to change a termination resistance on a hardware device then answer "Y" to continue.
In the terminal mode responding to the prompts is very simple.
However, I want to launch the python code from Lazarus.
Tprocess seems simple enough; but how do I answer the prompt questions?
I have read many examples of using Tprocess; but, none seem to target the above requirement.
Any help, suggestion, or even "hey dummy" is greatly appreciated! Please note; I know nothing about python. I have used C,C++,Pascal, even assembly; but never python. If possible do not use python lingo.
Thanks
Rob.