| List: | General Discussion | « Previous MessageNext Message » | |
| From: | Nicola Salvemini | Date: | January 7 2010 1:44pm |
| Subject: | Re: table export in cron | ||
| View as plain text | |||
----- machiel.richards <machiel.richards@stripped> wrote
>
> How can we do this when running in a cron script?
>
Hi!
You can use following command in a shell script running from cron:
echo "select * from <table> into outfile '/path/to/output/file' fields terminated
by '|';" | mysql --user=<youruser> --password=<yourpassword>
<yourdatabase>;
Bye!
| Thread | ||
|---|---|---|
| • table export in cron | machiel.richards | 6 Jan |
| • Re: table export in cron | Gary Smith | 6 Jan |
| • Re: table export in cron | Mikhail Berman | 6 Jan |
| • Re: table export in cron | sureshkumarilu | 6 Jan |
| • Re: table export in cron | Michael Dykman | 6 Jan |
| • Re: table export in cron | Nicola Salvemini | 7 Jan |
| • RE: table export in cron | machiel.richards | 7 Jan |
| • Re: table export in cron | Joerg Bruehe | 7 Jan |
| • RE: table export in cron | Dan | 8 Jan |
