> 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 jus
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 wrote:
> i m making a app in which i launch applic
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