[plug] `Expect` and `cron` <http://expect.nist.gov>

James Devenish devenish at guild.uwa.edu.au
Thu Jan 6 11:19:04 WST 2005


In message <20050106031149.GA23581 at mail.guild.uwa.edu.au>
on Thu, Jan 06, 2005 at 11:11:49AM +0800, James Devenish wrote:
> On Thu, 6 Jan 2005 09:07:58 +0800, James Devenish
> <devenish at guild.uwa.edu.au> wrote:
> >  - Other ways of using MySQL from the command line.

"Woo-hoo." It seems that you can specify the following:

/path/to/mysql --defaults-extra-file=/path/to/custom.my.cnf --batch

The custom.my.cnf file can look like this:

[client]
user = blah
password = blah

I assume this works in a safe manner (i.e. does not expose those values
in the environment or command line). Note that '--defaults-extra-file'
must appear *before* the '--batch' option (if you are using the
'--batch' option).





More information about the plug mailing list