From the terminal in Mac Mountain Lion, I’m running the following command:
mysql -h localhost -u root -p -B database | gunzip < db.sql.gz
It executes fine and the database is created but the file contents are put into the std out so I see the contents being spat out into the terminal window as it executes.
Can anyone tell me the switch to turn off the terminal output? I’ve Googled this but I can’t figure it out. Besides, it will be documented here for others now 😉
follow the command with
and normal output is suppressed but errors are still shown
follow the command with
and everything, including errors is supressed