dardan:cyberacademy:python:manage_services_py

import os

print “Apache Service Starting”

os.system(“service apache2 start”)

print “Apache Service is up”

print“”

print “SSH Service is Starting”

os.system(“service ssh start”)

print “SSH Service is up”

import os

#print “Starting update”

#os.system(“sudo apt-get update -y”)

#print “Update Done”

#os.system(“cat /etc/passwd”)

#print “System Users”

#os.system(“htop”)

print “Interface Details”

os.system(“ifconfig”)

print “Running Services”

os.system(“service –status-all”)

print “Current Working Direcotyr”

os.system(“pwd”)

dardan/cyberacademy/python/manage_services_py.txt · Last modified: 2018/09/10 19:40 by dardan

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki