pywebexec 1.3.2__py3-none-any.whl → 1.3.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pywebexec/pywebexec.py +7 -1
- pywebexec/static/css/Consolas NF.ttf +0 -0
- pywebexec/static/css/style.css +6 -0
- pywebexec/version.py +2 -2
- {pywebexec-1.3.2.dist-info → pywebexec-1.3.4.dist-info}/METADATA +1 -1
- {pywebexec-1.3.2.dist-info → pywebexec-1.3.4.dist-info}/RECORD +10 -9
- {pywebexec-1.3.2.dist-info → pywebexec-1.3.4.dist-info}/LICENSE +0 -0
- {pywebexec-1.3.2.dist-info → pywebexec-1.3.4.dist-info}/WHEEL +0 -0
- {pywebexec-1.3.2.dist-info → pywebexec-1.3.4.dist-info}/entry_points.txt +0 -0
- {pywebexec-1.3.2.dist-info → pywebexec-1.3.4.dist-info}/top_level.txt +0 -0
pywebexec/pywebexec.py
CHANGED
@@ -17,6 +17,7 @@ from socket import gethostname, gethostbyname_ex, gethostbyaddr, inet_aton, inet
|
|
17
17
|
import ssl
|
18
18
|
import re
|
19
19
|
import pwd
|
20
|
+
import platform
|
20
21
|
from secrets import token_urlsafe
|
21
22
|
|
22
23
|
if os.environ.get('PYWEBEXEC_LDAP_SERVER'):
|
@@ -327,7 +328,12 @@ def parseargs():
|
|
327
328
|
user = pwd.getpwuid(os.getuid())[0]
|
328
329
|
update_command_status(command_id, 'running', command="term", params=[user,os.ttyname(sys.stdout.fileno())], start_time=start_time, user=user)
|
329
330
|
output_file_path = get_output_file_path(command_id)
|
330
|
-
|
331
|
+
if platform.system() == 'Darwin':
|
332
|
+
script_opt = '-qF'
|
333
|
+
else:
|
334
|
+
script_opt = '-qf'
|
335
|
+
res = os.system(f"script {script_opt} {output_file_path}")
|
336
|
+
|
331
337
|
end_time = datetime.now().isoformat()
|
332
338
|
update_command_status(command_id, status="success", end_time=end_time, exit_code=res)
|
333
339
|
sys.exit(res)
|
Binary file
|
pywebexec/static/css/style.css
CHANGED
pywebexec/version.py
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
pywebexec/__init__.py,sha256=4spIsVaF8RJt8S58AG_wWoORRNkws9Iwqprj27C3ljM,99
|
2
|
-
pywebexec/pywebexec.py,sha256=
|
3
|
-
pywebexec/version.py,sha256=
|
4
|
-
pywebexec/static/css/
|
2
|
+
pywebexec/pywebexec.py,sha256=CsixpYwvlg2FUt05aEKMntvUtdmEhRL3EaSQixIq4bY,25620
|
3
|
+
pywebexec/version.py,sha256=q-rMkBhc2cbe8SdkcXn0kh8Fvtl2cIlapH0EvPC1bmc,411
|
4
|
+
pywebexec/static/css/Consolas NF.ttf,sha256=DJEOzF0eqZ-kxu3Gs_VE8X0NJqiobBzmxWDGpdgGRxI,1313900
|
5
|
+
pywebexec/static/css/style.css,sha256=iLX6k1hoWLinZWyqtbH50U-0hND2M-5_Zr1U1UC_gos,5578
|
5
6
|
pywebexec/static/css/xterm.css,sha256=gy8_LGA7Q61DUf8ElwFQzHqHMBQnbbEmpgZcbdgeSHI,5383
|
6
7
|
pywebexec/static/images/aborted.svg,sha256=_mP43hU5QdRLFZIknBgjx-dIXrHgQG23-QV27ApXK2A,381
|
7
8
|
pywebexec/static/images/copy.svg,sha256=d9OwtGh5GzzZHzYcDrLfNxZYLth1Q64x7bRyYxu4Px0,622
|
@@ -19,9 +20,9 @@ pywebexec/static/js/xterm/xterm-addon-fit.js,sha256=Pprm9pZe4SadVXS5Bc8b9VnC9Ex4
|
|
19
20
|
pywebexec/static/js/xterm/xterm.js,sha256=Bzka76jZwEhVt_LlS0e0qMw7ryGa1p5qfxFyeohphBo,283371
|
20
21
|
pywebexec/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
21
22
|
pywebexec/templates/index.html,sha256=DYtT555wSNhnFtzzHhPMWJireynCJNnAuTytpoORQeE,2321
|
22
|
-
pywebexec-1.3.
|
23
|
-
pywebexec-1.3.
|
24
|
-
pywebexec-1.3.
|
25
|
-
pywebexec-1.3.
|
26
|
-
pywebexec-1.3.
|
27
|
-
pywebexec-1.3.
|
23
|
+
pywebexec-1.3.4.dist-info/LICENSE,sha256=gRJf0JPT_wsZJsUGlWPTS8Vypfl9vQ1qjp6sNbKykuA,1064
|
24
|
+
pywebexec-1.3.4.dist-info/METADATA,sha256=WofvGA3I_xqTnXrhZ6ie1WXXRE_7aQ6gIT2vYwjS7BM,7397
|
25
|
+
pywebexec-1.3.4.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
26
|
+
pywebexec-1.3.4.dist-info/entry_points.txt,sha256=l52GBkPCXRkmlHfEyoVauyfBdg8o-CAtC8qQpOIjJK0,55
|
27
|
+
pywebexec-1.3.4.dist-info/top_level.txt,sha256=vHoHyzngrfGdm_nM7Xn_5iLmaCrf10XO1EhldgNLEQ8,10
|
28
|
+
pywebexec-1.3.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|