Skip to content

Instantly share code, notes, and snippets.

@bbot
bbot / gist:7556441
Last active Dec 28, 2015
Modern computing
View gist:7556441
import os
sudoPassword = 'hunter2'
foobar = 'you should see this line \\"second\\"'
command = 'echo %s %s' % (sudoPassword, foobar)
def blah(input):
os.system('echo %s|sudo -S %s' % (sudoPassword, command))
You can’t perform that action at this time.