Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. root@htcdream ~ # python
  2. Python 2.6.5 (r265:79063, Oct 22 2010, 03:07:16)
  3. [GCC 4.5.2 20100923 (prerelease)] on linux2
  4. Type "help", "copyright", "credits" or "license" for more information.
  5. >>> import os,subprocess
  6. >>> null = os.open("/dev/null",777)
  7. >>> p = subprocess.Popen("gps",stderr=null,stdout=null, shell=True)
  8. >>> p.pid
  9. 2210
  10. >>> p.kill()
  11. >>> p.pid
  12. 2210
  13. >>> p.pid
  14. 2210
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement