B13:Write python script to display all logged in users
Program:
import psutilprint("\nList of currently logged in users in the system are as follows:\n");
count=1;
for temp in psutil.get_users():
print("\nuser:",count);
count=count+1;
print(temp);
print("\nTotal number of user logged into system:",count-1);
0 comments:
Post a Comment