Searched defs:sys (Results 1 - 4 of 4) sorted by relevance

/lxc/src/python-lxc/examples/
H A Dpyconsole.py29 import sys namespace
35 if len(sys.argv) < 2:
36 sys.exit("Usage: %s container-name [ttynum [escape]]" % sys.argv[0])
37 if len(sys.argv) > 2:
38 ttynum = int(sys.argv[2])
39 if len(sys.argv) > 3:
40 escape = ord(sys.argv[3]) - ord('a') + 1
42 ct = lxc.Container(sys.argv[1])
48 sys
[all...]
H A Dpyconsole-vte.py31 import sys namespace
66 if len(sys.argv) < 2:
67 sys.exit("Usage: %s container-name [ttynum]" % sys.argv[0])
68 if len(sys.argv) > 2:
69 ttynum = int(sys.argv[2])
71 ct = lxc.Container(sys.argv[1])
75 sys.exit("Container %s not defined" % ct.name)
77 sys.exit("Container %s not running" % ct.name)
H A Dapi_test.py31 import sys namespace
164 if len(sys.argv) > 1 and sys.argv[1] == "--with-console":
/lxc/config/apparmor/
H A Dlxc-generate-aa-rules.py3 import sys namespace
11 # blocks[0] = ['path' = '/sys', 'children' = [A,B] ]
12 # blocks[1] = ['path' = '/proc/sys', 'children' = [ E ] ]
52 sys.exit(1)
67 if len(sys.argv) > 1:
68 config = sys.argv[1]
84 sys.exit(1)
135 for a in sys.argv[1:]:

Completed in 16 milliseconds