I'm using subprocess.Popen to invoke the console application. The console application itself calling another child process to perform download operation. The parent process exits once its invoke the child process.
I'm able to get the output of the child process while running the script manually in command prompt.
But the subprocess.Popen getting hanged while running the script in system environment( post commit hook). The subprocess not getting exit.
p1 = subprocess.Popen([Application,arg1, arg2, arg3], shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
Down_out = p1[0]
Down_Err = p1[1]
Thanks in advance