First of all I am a beginner.So pardon me if I am asking a dumb question.
I am trying to write a python automation code. With this code I should be able to run multiple programs like servers(mock backend api servers, C++ programs and java programs).
So what I thought is to make executables of C++ and JAVA programs and start them using python.
As the start what I did was, downloaded the wiremock- standalone and tried to start the wiremock server with python.
Here I have tried following two at different times.
os.system("java -jar <wiremock_name>")
print(5)
subprocess.call("java -jar <wiremock_name>", shell=true)
print(5)
At both times, the server was successfully deployed.But the print statement was not executed. I tried couple of threading scripts too. But same thing happened.
But it is the requirement(start the server, then configure it using some curl commands).
for me it looks like python is not coming back after it start the server. When we use the terminal we have to use the ctrl+C to manually end the process. I here server should also run.
So what is happening here?
What should I do/follow to implement this functionality?