Advertisement
Guest User

subprocess participation

a guest
May 29th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. import subprocess
  2.  
  3. ip = "127.0.0.1"
  4.  
  5. subprocess.call(["ping", ip], stdout=subprocess.PIPE) #this will make ping without any output
  6.  
  7. subprocess.call(["ping", ip]) # ping with output of system
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement