I want one help regarding subprocess.call in python I have launched one process using subprocess.call and it is saving log in log file. I want to terminate process once specific string is there in log file. I have read many answers and use like process.kill() or process.terminate() but it is not working.
log = open(log_file,"w")
subprocess.call(full_command, stdin=None, stdout=log, stderr=log, shell=False, timeout=None)
When specific string is there in log for example "abc" then I want to terminate the process. Can you please help?