Answer prompts automatically in a shell script during an installation Announcing the arrival...
Why is arima in R one time step off?
All ASCII characters with a given bit count
Will I be more secure with my own router behind my ISP's router?
What is the ongoing value of the Kanban board to the developers as opposed to management
How would you suggest I follow up with coworkers about our deadline that's today?
Feather, the Redeemed and Dire Fleet Daredevil
My admission is revoked after accepting the admission offer
Preserving file and folder permissions with rsync
What is /etc/mtab in Linux?
SQL Server placement of master database files vs resource database files
Is there a way to fake a method response using Mock or Stubs?
What's parked in Mil Moscow helicopter plant?
Why do people think Winterfell crypts is the safest place for women, children & old people?
Does a Draconic Bloodline sorcerer's doubled proficiency bonus for Charisma checks against dragons apply to all dragon types or only the chosen one?
Writing a T-SQL stored procedure to receive 4 numbers and insert them into a table
Has a Nobel Peace laureate ever been accused of war crimes?
Eigenvalues of the Laplacian of the directed De Bruijn graph
When speaking, how do you change your mind mid-sentence?
Was there ever a LEGO store in Miami International Airport?
Protagonist's race is hidden - should I reveal it?
Why is water being consumed when my shutoff valve is closed?
RIP Packet Format
France's Public Holidays' Puzzle
How did Elite on the NES work?
Answer prompts automatically in a shell script during an installation
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30 pm US/Eastern)Bash script: Program with parameters as a single variable: command not foundgrant command syntax error near password in shell scriptExport $DISPLAY value in Shell scriptHow to automatically answer interactive cli program (not script) with bash script?passing arguments when starting shell scriptHow to automate Dislocker process?Shell script with user input promptrunning shell script using c programHow can I run a shell script from bashrc file?How to provide a password while executing `mysqldump` through shell script
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I am running an installation script which I need to answer the following prompts
{o 3 n enter u n} to achieve the outcome that I want.
Below is what I wrote in the script, but it seem not to be working,
echo "o 3 N Enter U N" | ./$new_upgrd
scripts
New contributor
TeckyRA is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
I am running an installation script which I need to answer the following prompts
{o 3 n enter u n} to achieve the outcome that I want.
Below is what I wrote in the script, but it seem not to be working,
echo "o 3 N Enter U N" | ./$new_upgrd
scripts
New contributor
TeckyRA is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Is one of the required inputs literally the stringenter- or does this indicate a press of the "Enter" key?
– steeldriver
48 mins ago
add a comment |
I am running an installation script which I need to answer the following prompts
{o 3 n enter u n} to achieve the outcome that I want.
Below is what I wrote in the script, but it seem not to be working,
echo "o 3 N Enter U N" | ./$new_upgrd
scripts
New contributor
TeckyRA is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I am running an installation script which I need to answer the following prompts
{o 3 n enter u n} to achieve the outcome that I want.
Below is what I wrote in the script, but it seem not to be working,
echo "o 3 N Enter U N" | ./$new_upgrd
scripts
scripts
New contributor
TeckyRA is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
TeckyRA is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 8 hours ago
RoVo
8,4491944
8,4491944
New contributor
TeckyRA is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 8 hours ago
TeckyRATeckyRA
1
1
New contributor
TeckyRA is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
TeckyRA is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
TeckyRA is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Is one of the required inputs literally the stringenter- or does this indicate a press of the "Enter" key?
– steeldriver
48 mins ago
add a comment |
Is one of the required inputs literally the stringenter- or does this indicate a press of the "Enter" key?
– steeldriver
48 mins ago
Is one of the required inputs literally the string
enter - or does this indicate a press of the "Enter" key?– steeldriver
48 mins ago
Is one of the required inputs literally the string
enter - or does this indicate a press of the "Enter" key?– steeldriver
48 mins ago
add a comment |
2 Answers
2
active
oldest
votes
You need to have newlines between the strings:
printf '%sn%sn%sn%sn%sn%sn' o 3 N Enter U N | ./$new_upgrd
Thanks for responding. You mean this? printf '%on%3n%Nn%entern%Un%Nn' | ./$new_upgrd
– TeckyRA
6 hours ago
No. %s is a placeholder for string from argument. So it should exactly be as I wrote. Try the part up to the pipe to see the result.
– RoVo
6 hours ago
add a comment |
You need to have newlines between the strings:
echo -e "on3nNnenternUnN" | ./$new_upgrd
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
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',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
TeckyRA is a new contributor. Be nice, and check out our Code of Conduct.
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1136425%2fanswer-prompts-automatically-in-a-shell-script-during-an-installation%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
You need to have newlines between the strings:
printf '%sn%sn%sn%sn%sn%sn' o 3 N Enter U N | ./$new_upgrd
Thanks for responding. You mean this? printf '%on%3n%Nn%entern%Un%Nn' | ./$new_upgrd
– TeckyRA
6 hours ago
No. %s is a placeholder for string from argument. So it should exactly be as I wrote. Try the part up to the pipe to see the result.
– RoVo
6 hours ago
add a comment |
You need to have newlines between the strings:
printf '%sn%sn%sn%sn%sn%sn' o 3 N Enter U N | ./$new_upgrd
Thanks for responding. You mean this? printf '%on%3n%Nn%entern%Un%Nn' | ./$new_upgrd
– TeckyRA
6 hours ago
No. %s is a placeholder for string from argument. So it should exactly be as I wrote. Try the part up to the pipe to see the result.
– RoVo
6 hours ago
add a comment |
You need to have newlines between the strings:
printf '%sn%sn%sn%sn%sn%sn' o 3 N Enter U N | ./$new_upgrd
You need to have newlines between the strings:
printf '%sn%sn%sn%sn%sn%sn' o 3 N Enter U N | ./$new_upgrd
answered 8 hours ago
RoVoRoVo
8,4491944
8,4491944
Thanks for responding. You mean this? printf '%on%3n%Nn%entern%Un%Nn' | ./$new_upgrd
– TeckyRA
6 hours ago
No. %s is a placeholder for string from argument. So it should exactly be as I wrote. Try the part up to the pipe to see the result.
– RoVo
6 hours ago
add a comment |
Thanks for responding. You mean this? printf '%on%3n%Nn%entern%Un%Nn' | ./$new_upgrd
– TeckyRA
6 hours ago
No. %s is a placeholder for string from argument. So it should exactly be as I wrote. Try the part up to the pipe to see the result.
– RoVo
6 hours ago
Thanks for responding. You mean this? printf '%on%3n%Nn%entern%Un%Nn' | ./$new_upgrd
– TeckyRA
6 hours ago
Thanks for responding. You mean this? printf '%on%3n%Nn%entern%Un%Nn' | ./$new_upgrd
– TeckyRA
6 hours ago
No. %s is a placeholder for string from argument. So it should exactly be as I wrote. Try the part up to the pipe to see the result.
– RoVo
6 hours ago
No. %s is a placeholder for string from argument. So it should exactly be as I wrote. Try the part up to the pipe to see the result.
– RoVo
6 hours ago
add a comment |
You need to have newlines between the strings:
echo -e "on3nNnenternUnN" | ./$new_upgrd
add a comment |
You need to have newlines between the strings:
echo -e "on3nNnenternUnN" | ./$new_upgrd
add a comment |
You need to have newlines between the strings:
echo -e "on3nNnenternUnN" | ./$new_upgrd
You need to have newlines between the strings:
echo -e "on3nNnenternUnN" | ./$new_upgrd
answered 6 hours ago
Umberto CozziUmberto Cozzi
363
363
add a comment |
add a comment |
TeckyRA is a new contributor. Be nice, and check out our Code of Conduct.
TeckyRA is a new contributor. Be nice, and check out our Code of Conduct.
TeckyRA is a new contributor. Be nice, and check out our Code of Conduct.
TeckyRA is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1136425%2fanswer-prompts-automatically-in-a-shell-script-during-an-installation%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Is one of the required inputs literally the string
enter- or does this indicate a press of the "Enter" key?– steeldriver
48 mins ago