0

I have many python scripts I would like to run in succession (or concurrently).

For example: program1.py -

program2.py -

program 1 and 2 execute equivalent commands but for different sets of input.

program3.py combines output from program 1 and 2 and produces additional output. I have many of these. Eventually they produce one final output from everything. It is necessary to keep them organized this way.

Is there a best way to go about this?

I have tried importing as a module but seems there is probably a much better way.

asked Mar 3, 2020 at 17:05

1 Answer 1

2

you only need to use subprocess: https://docs.python.org/2/library/subprocess.html

answered Mar 3, 2020 at 17:08
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.