diff options
author | Jose M. Guisado <jguisado@soleta.eu> | 2021-11-15 12:08:43 +0100 |
---|---|---|
committer | Jose M. Guisado <jguisado@soleta.eu> | 2021-11-15 13:39:42 +0100 |
commit | ab7abf96a6832a227fe2218bb191cc2d1fc73030 (patch) | |
tree | 108fecd80c757711553bc5488b4b96878fc8e12c /cfg | |
parent | 69d214f63b2aa8ef60489d56468393b70795124a (diff) |
#1065 linux: add shell run operation
- Executed script runs with same privilege as ogClient process.
- Uses subprocess.run instead of subprocess.Popen, it's a bit simpler.
We can't specify executable, though. Shouldn't need so in Linux mode.
- Uses shell=True, keep in mind security considerations listed at:
https://docs.python.org/3/library/subprocess.html#security-considerations
(shlex.quote can be used for unix shells)
Diffstat (limited to 'cfg')
0 files changed, 0 insertions, 0 deletions