[wellylug] Mysqldump problem

Mark starnix at sdf.lonestar.org
Mon Sep 12 10:31:32 NZST 2005


> #bin/bash

should be shebang?

#!/bin/bash

?

-M

On Mon, Sep 12, 2005 at 10:15:07AM +1200, Michael Dittmer wrote:
> Hi
> 
> The following is a script that I'm having some trouble with. The
> permissions are set to 744.
> 
> #bin/bash
> rm /root/MySQL_BackUp/backup.sql
> mysqldump -p --password=********* -alldatabases >
> /root/MySQL_BackUp/backup.sql
> 
> When I issue the command "mysqldump -p --password=*********
> -alldatabases > /root/MySQL_BackUp/backup.sql" it works properly,
> however when I try to use it inside the script it fails saying
> "mysqldump: unknown option '-b'
> 
> Any idea what is going on?
> 
> Thanks
> 
> Michael
> 
> 
> -- 
> Wellington Linux Users Group Mailing List: wellylug at lists.wellylug.org.nz
> To Leave:  http://lists.wellylug.org.nz/mailman/listinfo/wellylug
> 

-- 
starnix at sdf.lonestar.org
http://sdf.lonestar.org/~starnix/
gpg fingerprint: 44D7 63F6 2210 24D8 E922  6AA5 FEFC 0024 3549 8CFC

"Life is like a box of chocolates. A cheap, thoughtless, perfunctory gift that nobody ever asks for. Unreturnable because all you get back is another box of chocolates. So your stuck with this indefinable whipped mint crap that you mindlessly wolf down when there's nothing else left to eat. Sure, once in a while there's a Peanut Butter Cup or an English Toffee. But they're gone too fast and the taste is... fleeting. So you end up with nothing but broken bits filled with hardened jelly and teeth-shattering nuts. And if you're desperate enough to eat those, all you got left is an empty box... filled with useless brown paper wrappers." --smoking man
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://lists.wellylug.org.nz/pipermail/wellylug/attachments/20050911/9bed0548/attachment.pgp 


More information about the wellylug mailing list