Created by: depau
Makes this similar to what I proposed in #3, allowing users to, for example, nice
down ffmpeg
, run it as another user, etc.
['nice', '-n', '15', 'ffmpeg']
['sudo', '-u', 'restricteduser', 'ffmpeg']
P.S. This obviously does not catch unicode
strings in py2 or bytes
in py3 (though I'm not sure subprocess accepts them). I can add a condition to check for that but it seemed a bit exaggerated to me, who puts emojis in command lines?