[Tutor] check the terminal keyword
Nitin Das
nitin.162 at gmail.com
Sat Aug 21 15:48:01 CEST 2010
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 <coolankur2006 at 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 at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100821/d2b281f6/attachment.html>
More information about the Tutor
mailing list