X-Git-Url: https://git.phdru.name/?p=bookmarks_db.git;a=blobdiff_plain;f=subproc.py;h=502d5dd19190d6456128d89e40434386ea987713;hp=d16ecc6064de3dbb28b610e51d6e14816c57767a;hb=34b8d0278505311f33805a54bc758bc4b690c882;hpb=953a1db81fd336fcb4c0702bc53d3e06958f3b64 diff --git a/subproc.py b/subproc.py old mode 100644 new mode 100755 index d16ecc6..502d5dd --- a/subproc.py +++ b/subproc.py @@ -1,3 +1,5 @@ +#! /usr/bin/env python + """Run a subprocess and communicate with it via stdin, stdout, and stderr. Requires that platform supports, eg, posix-style 'os.pipe' and 'os.fork' @@ -686,3 +688,6 @@ def test(p=0): del p print("\tDone.") return None + +if __name__ == '__main__': + test()