import os, time
import subprocess
time.sleep(1)
forked_pid = os.fork()
if forked_pid == 0:
print("I am child!")
subprocess.Popen(['ping','-c','10','localhost'])
print("Child Quit")
else:
print("I am parent!")
time.sleep(2)
print("Parent Quit")