#!/usr/bin/env python
import subprocess
import time 


child = subprocess.Popen(["/usr/bin/python","./while","-l"],stdout=subprocess.PIPE)

print "subprocess runing"
#out = child.communicate()

print child.pid
while True:
	retcode = child.poll()
	if retcode == None:
		print 'alive'
	else:
		print 'turn out'
	time.sleep(3)

541a50be522f51f176392b1b9b71b24287e21569
#!/usr/bin/env python
import subprocess
import time 


child = subprocess.Popen(["/usr/bin/python","./while","-l"],stdout=subprocess.PIPE)

print "subprocess runing"
#out = child.communicate()

print child.pid
while True:
	retcode = child.poll()
	if retcode == None:
		print 'alive'
	else:
		print 'turn out'
	time.sleep(3)
