Returning a value from python script while runnig this python script via c execlp function?

Viewed 99

I am trying to run a python file via execlp function of c language. I want to return a string from the python script. Is there any way to do that?

execlp("python", "python", "sendmail.py", "test", (char*) NULL);
0 Answers
Related