title: Protect the password when using Mysql in an unattended bash-script
body: <p>I am writing a bash script (for a cron job) that uses mysql:</p>
  
  <pre><code>mysql -uusername -ppassword -e 'something;'
  </code></pre>
  
  <p>I am looking for a good way to keep the password handy for use in the script, but in a manner that will also keep this information secure from other users on that system. Users who could use ps -ef and users who might read text files...</p>
  
  <p>So how can I safeguard passwords that will be used in an automated script on Linux?</p>