On Wed, Nov 26, 2014, at 10:02, Tim Daneliuk wrote: > someprog.py "uname && sudo cat /etc/sudoers" > > vs. > > someprog.py 'uname && echo "sudo cat /etc/suoders"'
I think it would be better to provide a general way for the user to provide an input script as an option, rather than to specifically detect the use of sudo. What if the command is a shell script that calls sudo within the script? -- https://mail.python.org/mailman/listinfo/python-list