minus-squareCosmicGiraffe@lemmy.worldtoPython@lemmy.ml•The Right Way to Run Shell Commands From Python | Martin Heinzlinkfedilinkarrow-up2·2 years ago e.g. shell=True allows you to pass the command as a single string Don’t do this. As the article says its much better to split the string using shlex and avoid the risk of shell injection vulnerabilities. linkfedilink
Don’t do this. As the article says its much better to split the string using
shlex
and avoid the risk of shell injection vulnerabilities.