Skip to content

Instantly share code, notes, and snippets.

@bbot
bbot / gist:7556441
Last active December 28, 2015 20:19
Modern computing
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))