Skip to content

Instantly share code, notes, and snippets.

@yeukhon
Created July 19, 2013 17:17
Show Gist options
  • Select an option

  • Save yeukhon/6040830 to your computer and use it in GitHub Desktop.

Select an option

Save yeukhon/6040830 to your computer and use it in GitHub Desktop.
run.py
#!/usr/bin/python
import time
time.sleep(30)
#!/usr/bin/python
from subprocess import Popen
p1 = Popen(['python', 'demo.py', '-c', 'name=val'])
p2 = Popen(['skipfish', '-o', '/tmp/skipfish', '-N', '-C', 'name=val', 'http://127.0.0.1:5000'])
ps -elf|grep python
S vagrant 28685 1 0 80 0 - 8042 poll_s 17:14 pts/7 00:00:00 python demo.py -c name=val
0 S vagrant 28693 1 0 80 0 - 8042 poll_s 17:14 pts/7 00:00:00 python demo.py -c name=val
ps -elf|grep skipfish
(b)vagrant@precise64:~$ ps -elf|grep skipfish
0 S vagrant 28758 1 0 80 0 - 4344 hrtime 17:17 pts/7 00:00:00 skipfish -o /tmp/erererere112 -N -C name val http://127.0.0.1:5000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment