You can use raw_input like for e.g.
u_input = raw_input("user_command")
n then u can check u_input against anything. if doesn't matches then u can
throw an error.
I hope it shall help you.

--nitin


On Sat, Aug 21, 2010 at 6:37 PM, ANKUR AGGARWAL <coolankur2...@gmail.com>wrote:

> i m making a app in which i launch application using os.system("input from
> user"). I want to check whether the input entered by the user matches with
> the exact keyword in terminal or not.
> like i want to launch vlc so user should provide me input as " vlc" in
> order to launch the app just like he did from terminal. I want to make a
> check on the input spell so that if he type "wlc" it shows an error to it. I
> have an little idea abt sys.agrv but don't know how to use it... Plz help me
> guys.
> Thanks in advance
>
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
>
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to