Quotation Ugliness

random832 at fastmail.us random832 at fastmail.us
Wed Nov 26 16:53:59 CET 2014


On Wed, Nov 26, 2014, at 10:36, Tim Daneliuk wrote:
> The more I think about this, the more I think I am just going to look for
> the
> string 'sudo' anywhere in the argument.  This merely will force the user
> to
> enter their sudo password if detected.  If it turns out to be a false
> positive,
> no harm will be done and the password will just go unused.

You could detect if the remote command on one of the target machines
prompts for a password, and if so present that prompt to the user then.



More information about the Python-list mailing list