You can use the term echo off like they posted above or you can have a command line argument for a password file. the password file just contains a plain text password. You can then enter the password in the file and chmod it so that you are the only one that can read it. This allows non-interactive use of the script while still being flexible (ie not hardcoding a db password in the script). If permissions are set correctly on the file only you and root would be able to read it. If you are worried about root reading it you should go somewhere else and run your program because root can do and see anything.