0

I use the Vagrant and self-written scripts to configure it. One of my scripts contains the following code:

mysql_secure_installation <<EOF

y
secret
secret
y
y
y
y
EOF

Everything works fine, but I want to turn off text output to the vagrant up log. Usually I do it via >/dev/null 2>&1, but here I don't know how to use this code.

Tell me please how can I solve my problem? Thx!

0

1 Answer 1

5

You can place it after the first EOF

command <<EOF > /dev/null 2>&1
blabla
EOF
Sign up to request clarification or add additional context in comments.

1 Comment

Thx, i'm already try use mysql_secure_installation> / dev / null 2> & 1 << EOF and this solution very well to)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.