I have a python cgi script, wherein after user enters the details in a form, it is sent to python script for processing and returns throwing a message in the browser. Before throwing a message to the browser, i want to call a python script which runs in the background and sends out mail once its task is completed. Any idea how to call a python script from another python script in the background?
Asked
Active
Viewed 2,062 times
2 Answers
0
Look at this answer on how to use the subprocess
modul for async calls.
-
1If a question is a dup, close it as a dup, don't write an answer linking to the dup. – abarnert Oct 18 '13 at 10:40