arcserv agent installation without asking Y or N

The name of the pictureThe name of the pictureThe name of the pictureClash 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.







share|improve this question




















  • 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














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.







share|improve this question




















  • 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












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.







share|improve this question












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.









share|improve this question











share|improve this question




share|improve this question










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
















  • 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










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





share|improve this answer




















  • 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










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















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






























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





share|improve this answer




















  • 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














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





share|improve this answer




















  • 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












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





share|improve this answer












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






share|improve this answer












share|improve this answer



share|improve this answer










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
















  • 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












 

draft saved


draft discarded


























 


draft saved


draft discarded














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













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay