cat > /tmp/ms.sh << 'HEREDOC_END' #!/bin/sh mysql -uroot -pa53e59ca4047be30 -e 'SELECT user()' 2>&1 HEREDOC_END