xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.


Ticket #1518: test.py

File test.py, 341 bytes (added by Denis01, 4 years ago)
Line 
1import subprocess
2
3def test():
4        cmd = "xpra start --bind-tcp=XXX.XXX.XXX.XXX:10000 --start-child=/bin/libreoffice5.2 --exit-with-children --attach=no --auth=none"
5        PIPE = subprocess.PIPE
6        p = subprocess.Popen(cmd, shell=True, stdin=PIPE, stdout=PIPE, stderr=subprocess.STDOUT, close_fds=True)
7        s = p.stdout.read()
8        print(s)
9        return 
10
11test()