On your mysql monitor do:
mysql> tee filename.out

This will redirect everhting to filename.out besides ptinting it to the screen.

Alternatively from you shell:
$ echo "show status;"|mysql -u thalis -p lala > filename.out


regards,
thalis


On Fri, 4 May 2001, Tim wrote:

> 
> Is there any way to redirect the output of a 'Show' command to a text
> file??  I know you can do this with a SELECT sql statement...
> 
> -TIM
> 
> 
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
> 
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail <[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
> 
> 


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to