[Cialug] shell script error

Jerry Weida jweida at gmail.com
Fri Aug 26 14:09:50 CDT 2005


#!/bin/sh

TODAY=$(date +%Y%m%d)
MYSQLDUMP=/usr/bin/mysqldump
MYSQLUSER=mysqluser
MYSQLPASS=mysqlpass

${MYSQLDUMP} -u ${MYSQLUSER} --password=${MYSQLPASS} database1 >
/home/chris/mysql_data/database1${TODAY}.sql


On 8/26/05, Bryan Baker <ka_klick at mac.com> wrote: 
> 
> Just beat me to the punch :-)
> I had just copied this line out of one of my shell scripts as a sample
> using date:
> 
> CURRENT_DOW=$(date "+%w")
> 
> 
> On Aug 26, 2005, at 2:06 PM, Paul Gray wrote:
> > On Fri, Aug 26, 2005 at 02:03:47PM -0500, Chris Hettinger wrote:
> >> #!/bin/sh
> >>
> >> TODAY=date +%Y%m%d
> >
> > You need back tics or $(shell ) in the above line.
> >
> > --
> > Paul Gray -o)
> > 323 Wright Hall /\\
> > University of Northern Iowa _\_V
> > Message void if penguin violated ... Don't mess with the penguin
> > _______________________________________________
> > Cialug mailing list
> > Cialug at cialug.org
> > http://cialug.org/mailman/listinfo/cialug
> >
> --
> Bryan Baker
> Technology Advocate
> Iowa Legal Aid
> Suite 230
> 1111 9th Street
> Des Moines, Ia 50314-2527
> 
> (515) 243-2151 (x1635)
> 
> http://www.iowalegalaid.org
> bbaker at iowalaw.org
> 
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cialug.org/pipermail/cialug/attachments/20050826/ac7bccc8/attachment.htm


More information about the Cialug mailing list