SyntaxFix
Write A Post
Hire A Developer
Questions
echo y | command should work.
echo y | command
Also, some installers have an "auto-yes" flag. It's -y for apt-get on Ubuntu.
-y
apt-get