Hi all,

Im new with python, im working on a Python console Menu, I found some examples 
on Git, but  what I need to understand is how I can call a subprocess.

Here is an Example ,

if choice==1:
        print "Test SSH Connection (check ssh to all hosts)"
        ## You can add your code or functions here
        #print_menu()
    elif choice==2:
        print "Menu 2 has been selected"
        ## You can add your code or functions here
    elif choice==3:
        print "Menu 3 has been selected"
        ## You can add your code or functions here
    elif choice==4:
        print "Menu 4 has been selected"
        ## You can add your code or functions here
    elif choice==5:
        print "Menu 5 has been selected"
        ## You can add your code or function here


Thanks. 
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to