Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def start_stop(request):
- p = subprocess.Popen(['sh', '/home/ubuntu/contacts/contacts/scripts/ffp_bash.sh'], stdout=subprocess.PIPE)
- p.wait()
- content = p.stdout.read()
- ret = "<html><head></head><body><p>" + content + "</p></body></html>"
- return HttpResponse(ret)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement