Skip to content

Instantly share code, notes, and snippets.

View jerrykuch's full-sized avatar

Jerry Kuch jerrykuch

View GitHub Profile
@jerrykuch
jerrykuch / gist:1207851
Created September 10, 2011 02:25
OH THE HORROR
def install_vfabric_eula():
retcode_vfabric_eula_rpm_qi = \
subprocess.call(["rpm", "-qi", vfabric_eula_rpm_base])
if retcode_vfabric_eula_rpm_qi == 1:
# Need to install vfabric-eula
try:
child = pexpect.spawn("rpm -i %s" % vfabric_eula_rpm)
child.logfile = sys.stdout
child.expect(".*--More--.*")
child.send('q')