Advertisement
Guest User

Untitled

a guest
Sep 13th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. #! /usr/bin/python
  2.  
  3. import commands, os, string
  4. import sys
  5. import fileinput
  6.  
  7.  
  8. def print_menu(): ## Your menu design here
  9. print 20 * "-" , "Perform Below Steps to Create a New TSM Account." , 20 * "-"
  10. print "1. Create User Account"
  11. print 67 * "-"
  12.  
  13. loop=True
  14.  
  15. while loop: ## While loop which will keep going until loop = False
  16. print_menu() ## Displays menu
  17. choice = input("Enter your choice [1-5]: ")
  18.  
  19. if choice==1:
  20. user = raw_input("Enter the Username to be created: " )
  21. password = raw_input( "Enter the password for the user: " )
  22. SRnumber = raw_input( "Enter the Service Request Number: ")
  23.  
  24. user = user + " "
  25.  
  26. output = os.system('create user' + user)
  27. output = os.system('set password' + password)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement