-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphy3.py
More file actions
43 lines (36 loc) · 1.16 KB
/
Copy pathphy3.py
File metadata and controls
43 lines (36 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import os
os.system("tput setaf 1")
print("t\t\thay welcome to TUI thats make life simple")
os.system("tput setaf 7")
print("\t\t\t---------------------------------------")
print("where you would like to perform your job (local/remote) :" , end='')
location = input()
print(location)
if location == "remote":
remoteIP = input("Enter ur IP : ")
while true:
print("""
press 1: to see date
press2: to check cal
press3: conf web server
press4: to create user
press5: create file
""")
print("Enter your choice : " , end="")
ch=input()
print(ch)
if location == "local":
if int(ch) == 1:
os.system("date")
elif int(ch) == 2:
os.system("cal")
elif int(ch) == 3:
os.system("yum install httpd")
elif int(ch) == 4:
print("can u plz user name: " , end='')
create user = input()
os.system("useradd {}".format (create_user))
elif int(ch) == 5:
os.system("date")
elif int(ch) == 1:
os.system("date")