LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   script for pass the ENTER key in a process (https://www.linuxquestions.org/questions/linux-newbie-8/script-for-pass-the-enter-key-in-a-process-4175418180/)

KaRt 07-23-2012 03:07 AM

script for pass the ENTER key in a process
 
while my apps installation it asks many times to hit a enter key i want to pass the enter key from script that means without
user interaction.. help me out....

angel115 07-23-2012 03:32 AM

did you try with "yes"

Code:

/your/command | yes ""

schneidz 07-23-2012 11:44 AM

i think this is what expect was designed for.

TB0ne 07-23-2012 11:53 AM

Quote:

Originally Posted by KaRt (Post 4735623)
i ll write script for zimbra desktop . while a installation it asks many times to hit a enter key i want to pass the enter key from script that means without
user interaction.. help me out....i used some concepts but it doesnt work...

Aside from the advice given, how about posting what you've written so far, and tell us what 'concepts' you've tried, and what you mean by "doesn't work"?

KaRt 07-26-2012 04:59 AM

thanks
 
through the argument passing i am done the script.thanks for all your Suggestion.

create a temporary file with your requirments and redirect it to your script.
like
cat>>"/tmp/test/"<<EOF
cmd1
cmd2
cmd3
EOF
and redirect this to your script
for ex
./myapp < /tmp/test/
and then remove your temporary file


All times are GMT -5. The time now is 11:45 AM.