struggling with a one liner

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Colin Rasor
Date:  
Subject: struggling with a one liner
Mike,

This doesn¹t include MIME but it might get you started.


$database = your database
$emailaddress = your dump email


mysqldump -B $database | mail $emailaddress


On 9/3/02 20:39, "Mike Starke" <> wrote:

> Maybe I'm tired, or maybe ...? Anyhow, I would
> like to come up with a one-liner to run mysqldump
> on a database, then mpack the output to a given email address.
>
> Anyone?
>
> v/r
> Mike
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
>
>

I