Python Spawn Shell June 10, 2022 by Rajeswari Palanivel python spawn shell python -c 'import pty;pty.spawn("/bin/bash")'