def ycsb(): error = None if request.method == 'POST': #msg=sh.fab("-H","[email protected]`","-i","/home/arun/nosqlsb.pem","host_type"); sh.fab("ycsb:workload="+request.form['workload']+',recordcount='+request.form['recordcount']+',target='+request.form['target']) flash('Done') return render_template('result.html') else: error = 'Invalid username/password' return render_template('index.html')
import sh #print(sh.fab("-H [email protected] host_type")); #pr=sh.fab("-H","[email protected]","host_type"); pr=sh.ls("/") print (pr) pr=sh.fab("hello") print (pr) print(len(pr))
import sh msg=sh.fab("-H","*****@*****.**","-i","/home/arun/nosqlsb.pem","host_type"); print msg