[Cialug] shell script error

Chris Hettinger cjh at raccoon.com
Fri Aug 26 14:11:47 CDT 2005


Thanks all, makes sense now that I see it.
-ch

Jerry Weida wrote:

> #!/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 <mailto: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 <mailto: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 <mailto:bbaker at iowalaw.org>
> 
>     _______________________________________________
>     Cialug mailing list
>     Cialug at cialug.org <mailto:Cialug at cialug.org>
>     http://cialug.org/mailman/listinfo/cialug
>     <http://cialug.org/mailman/listinfo/cialug>
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug



More information about the Cialug mailing list