Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I have a script which is prompting for user input using "read" command & this script is read only.
I need to automate my process which is invoking the above script, i want to know is there any way by which i can supply the user input through some variables so that it wont halt my script & wait for user input// as normally above mentioned script will wait for user input
Is user's input same all the time? If yes, then you can store that value in a variable, and can declare that variable in the script itself. So u won't need use read statement. Else for varying input you'll need to wait for user's input.