arcserv agent installation without asking Y or N
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I do the ./install ; it prompts for answers like :
lease enter your choice:[Y|N] (default: N) y
Do you want to view the installation notes? (y/n):(default: y) n
How can I automate that so it will read my Y or N answer from another file without me manually entering it each time?
I appreciate any information you can share with me.
shell-script
add a comment |Â
up vote
0
down vote
favorite
I do the ./install ; it prompts for answers like :
lease enter your choice:[Y|N] (default: N) y
Do you want to view the installation notes? (y/n):(default: y) n
How can I automate that so it will read my Y or N answer from another file without me manually entering it each time?
I appreciate any information you can share with me.
shell-script
Using the command yes. Look this example
â Raúl Ulises MartÃn Hernández
Feb 15 at 21:10
1
A fun utility, @RaúlUlisesMartÃnHernández but itâÂÂs not flexible enough to provide variable responses (âÂÂyâ followed by âÂÂnâ here)
â Jeff Schaller
Feb 15 at 22:41
If the answer below has solved your problem, please indicate that to the system by clicking the checkmark. Thank you!
â Jeff Schaller
Feb 25 at 13:19
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I do the ./install ; it prompts for answers like :
lease enter your choice:[Y|N] (default: N) y
Do you want to view the installation notes? (y/n):(default: y) n
How can I automate that so it will read my Y or N answer from another file without me manually entering it each time?
I appreciate any information you can share with me.
shell-script
I do the ./install ; it prompts for answers like :
lease enter your choice:[Y|N] (default: N) y
Do you want to view the installation notes? (y/n):(default: y) n
How can I automate that so it will read my Y or N answer from another file without me manually entering it each time?
I appreciate any information you can share with me.
shell-script
asked Feb 15 at 20:42
tester787
9028
9028
Using the command yes. Look this example
â Raúl Ulises MartÃn Hernández
Feb 15 at 21:10
1
A fun utility, @RaúlUlisesMartÃnHernández but itâÂÂs not flexible enough to provide variable responses (âÂÂyâ followed by âÂÂnâ here)
â Jeff Schaller
Feb 15 at 22:41
If the answer below has solved your problem, please indicate that to the system by clicking the checkmark. Thank you!
â Jeff Schaller
Feb 25 at 13:19
add a comment |Â
Using the command yes. Look this example
â Raúl Ulises MartÃn Hernández
Feb 15 at 21:10
1
A fun utility, @RaúlUlisesMartÃnHernández but itâÂÂs not flexible enough to provide variable responses (âÂÂyâ followed by âÂÂnâ here)
â Jeff Schaller
Feb 15 at 22:41
If the answer below has solved your problem, please indicate that to the system by clicking the checkmark. Thank you!
â Jeff Schaller
Feb 25 at 13:19
Using the command yes. Look this example
â Raúl Ulises MartÃn Hernández
Feb 15 at 21:10
Using the command yes. Look this example
â Raúl Ulises MartÃn Hernández
Feb 15 at 21:10
1
1
A fun utility, @RaúlUlisesMartÃnHernández but itâÂÂs not flexible enough to provide variable responses (âÂÂyâ followed by âÂÂnâ here)
â Jeff Schaller
Feb 15 at 22:41
A fun utility, @RaúlUlisesMartÃnHernández but itâÂÂs not flexible enough to provide variable responses (âÂÂyâ followed by âÂÂnâ here)
â Jeff Schaller
Feb 15 at 22:41
If the answer below has solved your problem, please indicate that to the system by clicking the checkmark. Thank you!
â Jeff Schaller
Feb 25 at 13:19
If the answer below has solved your problem, please indicate that to the system by clicking the checkmark. Thank you!
â Jeff Schaller
Feb 25 at 13:19
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
If the installer reads from standard input (as opposed to directly from the tty), you can do:
printf "%sn" "y" "n" | ./install
If you really want the response information in a file, you could:
printf "%sn" "y" "n" > response-file
./install < response-file
Thanks, this is exactly what I want : y n 2 y n would the following be correct: printf "%sn" "y" "n" "2" "y" "n" > response-file ./install < response-file
â tester787
Feb 15 at 21:08
The formatting is limited in comments, but that looks like the right direction. If you spell out exactly what you need in the Question, then I can update the Answer accordingly.
â Jeff Schaller
Feb 15 at 21:39
I tried the following, still gets stock on the readme filr:
â tester787
Feb 26 at 17:05
printf "qynnn2n/opt/CAnynynynnn" | ./install The n's are the enter keys
â tester787
Feb 26 at 17:05
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
If the installer reads from standard input (as opposed to directly from the tty), you can do:
printf "%sn" "y" "n" | ./install
If you really want the response information in a file, you could:
printf "%sn" "y" "n" > response-file
./install < response-file
Thanks, this is exactly what I want : y n 2 y n would the following be correct: printf "%sn" "y" "n" "2" "y" "n" > response-file ./install < response-file
â tester787
Feb 15 at 21:08
The formatting is limited in comments, but that looks like the right direction. If you spell out exactly what you need in the Question, then I can update the Answer accordingly.
â Jeff Schaller
Feb 15 at 21:39
I tried the following, still gets stock on the readme filr:
â tester787
Feb 26 at 17:05
printf "qynnn2n/opt/CAnynynynnn" | ./install The n's are the enter keys
â tester787
Feb 26 at 17:05
add a comment |Â
up vote
1
down vote
If the installer reads from standard input (as opposed to directly from the tty), you can do:
printf "%sn" "y" "n" | ./install
If you really want the response information in a file, you could:
printf "%sn" "y" "n" > response-file
./install < response-file
Thanks, this is exactly what I want : y n 2 y n would the following be correct: printf "%sn" "y" "n" "2" "y" "n" > response-file ./install < response-file
â tester787
Feb 15 at 21:08
The formatting is limited in comments, but that looks like the right direction. If you spell out exactly what you need in the Question, then I can update the Answer accordingly.
â Jeff Schaller
Feb 15 at 21:39
I tried the following, still gets stock on the readme filr:
â tester787
Feb 26 at 17:05
printf "qynnn2n/opt/CAnynynynnn" | ./install The n's are the enter keys
â tester787
Feb 26 at 17:05
add a comment |Â
up vote
1
down vote
up vote
1
down vote
If the installer reads from standard input (as opposed to directly from the tty), you can do:
printf "%sn" "y" "n" | ./install
If you really want the response information in a file, you could:
printf "%sn" "y" "n" > response-file
./install < response-file
If the installer reads from standard input (as opposed to directly from the tty), you can do:
printf "%sn" "y" "n" | ./install
If you really want the response information in a file, you could:
printf "%sn" "y" "n" > response-file
./install < response-file
answered Feb 15 at 20:53
Jeff Schaller
31.2k846105
31.2k846105
Thanks, this is exactly what I want : y n 2 y n would the following be correct: printf "%sn" "y" "n" "2" "y" "n" > response-file ./install < response-file
â tester787
Feb 15 at 21:08
The formatting is limited in comments, but that looks like the right direction. If you spell out exactly what you need in the Question, then I can update the Answer accordingly.
â Jeff Schaller
Feb 15 at 21:39
I tried the following, still gets stock on the readme filr:
â tester787
Feb 26 at 17:05
printf "qynnn2n/opt/CAnynynynnn" | ./install The n's are the enter keys
â tester787
Feb 26 at 17:05
add a comment |Â
Thanks, this is exactly what I want : y n 2 y n would the following be correct: printf "%sn" "y" "n" "2" "y" "n" > response-file ./install < response-file
â tester787
Feb 15 at 21:08
The formatting is limited in comments, but that looks like the right direction. If you spell out exactly what you need in the Question, then I can update the Answer accordingly.
â Jeff Schaller
Feb 15 at 21:39
I tried the following, still gets stock on the readme filr:
â tester787
Feb 26 at 17:05
printf "qynnn2n/opt/CAnynynynnn" | ./install The n's are the enter keys
â tester787
Feb 26 at 17:05
Thanks, this is exactly what I want : y n 2 y n would the following be correct: printf "%sn" "y" "n" "2" "y" "n" > response-file ./install < response-file
â tester787
Feb 15 at 21:08
Thanks, this is exactly what I want : y n 2 y n would the following be correct: printf "%sn" "y" "n" "2" "y" "n" > response-file ./install < response-file
â tester787
Feb 15 at 21:08
The formatting is limited in comments, but that looks like the right direction. If you spell out exactly what you need in the Question, then I can update the Answer accordingly.
â Jeff Schaller
Feb 15 at 21:39
The formatting is limited in comments, but that looks like the right direction. If you spell out exactly what you need in the Question, then I can update the Answer accordingly.
â Jeff Schaller
Feb 15 at 21:39
I tried the following, still gets stock on the readme filr:
â tester787
Feb 26 at 17:05
I tried the following, still gets stock on the readme filr:
â tester787
Feb 26 at 17:05
printf "qynnn2n/opt/CAnynynynnn" | ./install The n's are the enter keys
â tester787
Feb 26 at 17:05
printf "qynnn2n/opt/CAnynynynnn" | ./install The n's are the enter keys
â tester787
Feb 26 at 17:05
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f424464%2farcserv-agent-installation-without-asking-y-or-n%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Using the command yes. Look this example
â Raúl Ulises MartÃn Hernández
Feb 15 at 21:10
1
A fun utility, @RaúlUlisesMartÃnHernández but itâÂÂs not flexible enough to provide variable responses (âÂÂyâ followed by âÂÂnâ here)
â Jeff Schaller
Feb 15 at 22:41
If the answer below has solved your problem, please indicate that to the system by clicking the checkmark. Thank you!
â Jeff Schaller
Feb 25 at 13:19