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

Bernard Blackham bernard at blackham.com.au
Thu Jan 6 11:26:37 WST 2005


On Thu, Jan 06, 2005 at 11:19:04AM +0800, James Devenish wrote:
> "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

Alternately, you could put this in $HOME/.my.cnf of the user running
the job and not worry about command-line quarrels. (Though I
usually use "mysql" or "mysqldump, etc, in place of where you have
"client").

Bernard.

-- 
 Bernard Blackham <bernard at blackham dot com dot au>



More information about the plug mailing list