Get pid, command line arguments from system : System pid « System « Python






Get pid, command line arguments from system


import os, sys
print 'Hello from child', os.getpid(), sys.argv[1]
raw_input("Press <Enter>")

           
       

Related examples in the same category