• LOGIN
  • No products in the cart.

DevOps on AWS – Python Scripts 6 : Running Shell Cmds

ShellCmds.py

import os
cmd = raw_input(‘Which cmd do you want run?’)
fp = os.popen(cmd)
res = fp.read()
fp.close()
print res


February 22, 2021

Contact Address

Rise ‘n’ Shine Technologies:
Third Floor, Plot No1(Part), near KPHB Metro Station, KPHB Bagyanagar Colony, Kukatpally Main road, Balanagar Mandal, Rangareddy Dist-500072

Landmarks : Above VIOLET & PURPLE, near PJR statue, kphb metro station

  8686 98 8042
rnstech.fmw@gmail.com

Location

All rights reserved.
error: Alert: Content is protected !!
X