Advertisement
Guest User

Untitled

a guest
Jan 21st, 2016
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. def start_stop(request):
  2.     p = subprocess.Popen(['sh', '/home/ubuntu/contacts/contacts/scripts/ffp_bash.sh'], stdout=subprocess.PIPE)
  3.     p.wait()
  4.     content = p.stdout.read()
  5.     ret = "<html><head></head><body><p>" + content + "</p></body></html>"
  6.     return HttpResponse(ret)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement