Shell and Mysql

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I am trying to run a mysql batch script through the shell. The one
problem though is that the error messages out of my script dont go to
the redirect i.e., if I run


the error messages do no print into test.log, but to the command line.
I would like to capture the errors into this log file as well. Any



Re: Shell and Mysql

On Sat, 08 Oct 2005 12:25:43 -0700, lampakump wrote:

Quoted text here. Click to load it

In general you can capture all generated output by adding 2>&1 to your

mysql< test.sql > test.log 2>&1

Should do the trick.


Site Timeline