Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
    Tweeted twitter.com/StackUnix/status/1117578409830420481
    Became Hot Network Question
4 deleted 6 characters in body
source | link

I want to uninstall some program via a bash script. After I run the command, the terminal asking me if I am sure that I want to uninstall it. So I need to answer y. I want to do it automatically and answer y after delay of 10 seconds.

I did this example but it's not working -

#!/usr/bin
/opt/MNG/MNGVIEWHP/fe/uninstall
sleep 10
echo "y"

Any idea? BTW - CentosCentos 7.2

I want to uninstall some program via a bash script. After I run the command, the terminal asking me if I am sure that I want to uninstall it. So I need to answer y. I want to do it automatically and answer y after delay of 10 seconds.

I did this example but it's not working -

#!/usr/bin
/opt/MNG/MNGVIEWHP/fe/uninstall
sleep 10
echo "y"

Any idea? BTW - Centos 7.2

I want to uninstall some program via a bash script. After I run the command, the terminal asking me if I am sure that I want to uninstall it. So I need to answer y. I want to do it automatically and answer y after delay of 10 seconds.

I did this example but it's not working -

#!/usr/bin
/opt/MNG/MNGVIEWHP/fe/uninstall
sleep 10
echo "y"

Any idea? Centos 7.2

3 match title to body, and fix some grammar and spelling
source | link

How do I print character automatically answer y in bash script?

I wannawant to uninstall some program via a bash script. After I run the command -, the terminal asking me if I'mI am sure that I want to uninstall it. So I need to answer y. I want to do it automatically and answer y after delay of 10 seconds.

I did this example but it's not working -

#!/usr/bin
/opt/MNG/MNGVIEWHP/fe/uninstall
sleep 10
echo "y"

Any idea? BTW - Centos 7.2

How do I print character automatically in bash script?

I wanna uninstall some program via bash script. After run the command - terminal asking me if I'm sure that I want to uninstall it. So I need to answer y. I want to do it automatically and answer y after delay of 10 seconds.

I did this example but it's not working -

#!/usr/bin
/opt/MNG/MNGVIEWHP/fe/uninstall
sleep 10
echo "y"

Any idea? BTW - Centos 7.2

How do I automatically answer y in bash script?

I want to uninstall some program via a bash script. After I run the command, the terminal asking me if I am sure that I want to uninstall it. So I need to answer y. I want to do it automatically and answer y after delay of 10 seconds.

I did this example but it's not working -

#!/usr/bin
/opt/MNG/MNGVIEWHP/fe/uninstall
sleep 10
echo "y"

Any idea? BTW - Centos 7.2

2 added 20 characters in body; edited title
source | link

Question | how to How do I print character automatically in bash script?

I wanna uninstall some program via bash script. After run the command - terminal asking me if I'm sure that I want to uninstall it. So I need to answer "y"y. I want to do it automatically and answer "y"y after delay of 10 seconds.

I did this example but it's not working -

!/usr/bin

/opt/MNG/MNGVIEWHP/fe/uninstall sleep 10 echo "y"

#!/usr/bin
/opt/MNG/MNGVIEWHP/fe/uninstall
sleep 10
echo "y"

Any idea? BTW - Centos 7.2

Question | how to print character automatically in bash script?

I wanna uninstall some program via bash script. After run the command - terminal asking me if I'm sure that I want to uninstall it. So I need to answer "y". I want to do it automatically and answer "y" after delay of 10 seconds.

I did this example but it's not working -

!/usr/bin

/opt/MNG/MNGVIEWHP/fe/uninstall sleep 10 echo "y"

Any idea? BTW - Centos 7.2

How do I print character automatically in bash script?

I wanna uninstall some program via bash script. After run the command - terminal asking me if I'm sure that I want to uninstall it. So I need to answer y. I want to do it automatically and answer y after delay of 10 seconds.

I did this example but it's not working -

#!/usr/bin
/opt/MNG/MNGVIEWHP/fe/uninstall
sleep 10
echo "y"

Any idea? BTW - Centos 7.2

1
source | link