Linux - Newbie This 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! |
Notices |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-23-2012, 02:07 AM
|
#1
|
LQ Newbie
Registered: Jul 2012
Location: india
Posts: 28
Rep: 
|
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....
Last edited by KaRt; 07-26-2012 at 04:00 AM.
|
|
|
07-23-2012, 02:32 AM
|
#2
|
Member
Registered: Jul 2005
Location: France / Ireland
Distribution: Debian mainly, and Ubuntu
Posts: 542
Rep:
|
did you try with " yes"
Code:
/your/command | yes ""
|
|
|
07-23-2012, 10:44 AM
|
#3
|
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,326
|
i think this is what expect was designed for.
|
|
|
07-23-2012, 10:53 AM
|
#4
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,681
|
Quote:
Originally Posted by KaRt
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"?
|
|
1 members found this post helpful.
|
07-26-2012, 03:59 AM
|
#5
|
LQ Newbie
Registered: Jul 2012
Location: india
Posts: 28
Original Poster
Rep: 
|
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
Last edited by KaRt; 07-26-2012 at 07:32 AM.
|
|
|
All times are GMT -5. The time now is 08:55 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|