Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@htcdream ~ # python
- Python 2.6.5 (r265:79063, Oct 22 2010, 03:07:16)
- [GCC 4.5.2 20100923 (prerelease)] on linux2
- Type "help", "copyright", "credits" or "license" for more information.
- >>> import os,subprocess
- >>> null = os.open("/dev/null",777)
- >>> p = subprocess.Popen("gps",stderr=null,stdout=null, shell=True)
- >>> p.pid
- 2210
- >>> p.kill()
- >>> p.pid
- 2210
- >>> p.pid
- 2210
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement