0

I'm trying to pass an argument at an executable program launched from the command line. The passed argument is not required at the initial executable execution but it is asked after some computations are done. The process remains in pending condition until the required argument is passed from command line. After the insertion of such parameter the program ends its execution. I need to automate the overall process. Is there anyone who can help me ?

Any possible suggestions are welcome

Michele

Michele
  • 11
  • 1
  • 1

1 Answers1

0

You need interaction, a way to start a process, and then monitor its output and be able to pass input to the process..

Python has this, it is called subprocess.Popen. There are many examples of similar questions and answers here on StackOverflow.

For example:

And many more.

Community
  • 1
  • 1
Inbar Rose
  • 41,843
  • 24
  • 85
  • 131