Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /usr/bin/python
- import commands, os, string
- import sys
- import fileinput
- def print_menu(): ## Your menu design here
- print 20 * "-" , "Perform Below Steps to Create a New TSM Account." , 20 * "-"
- print "1. Create User Account"
- print 67 * "-"
- loop=True
- while loop: ## While loop which will keep going until loop = False
- print_menu() ## Displays menu
- choice = input("Enter your choice [1-5]: ")
- if choice==1:
- user = raw_input("Enter the Username to be created: " )
- password = raw_input( "Enter the password for the user: " )
- SRnumber = raw_input( "Enter the Service Request Number: ")
- user = user + " "
- output = os.system('create user' + user)
- output = os.system('set password' + password)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement