#!/bin/sh<br><br>TODAY=<font style="BACKGROUND-COLOR: #ffff33">$(date +%Y%m%d)<br></font>MYSQLDUMP=/usr/bin/mysqldump<br>MYSQLUSER=mysqluser<br>MYSQLPASS=mysqlpass<br><br>${MYSQLDUMP} -u ${MYSQLUSER} --password=${MYSQLPASS} database1 >
<br>/home/chris/mysql_data/database1${TODAY}.sql<br><br><br>
<div><span class="gmail_quote">On 8/26/05, <b class="gmail_sendername">Bryan Baker</b> <<a href="mailto:ka_klick@mac.com">ka_klick@mac.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Just beat me to the punch :-)<br>I had just copied this line out of one of my shell scripts as a sample<br>
using date:<br><br>CURRENT_DOW=$(date "+%w")<br><br><br>On Aug 26, 2005, at 2:06 PM, Paul Gray wrote:<br>> On Fri, Aug 26, 2005 at 02:03:47PM -0500, Chris Hettinger wrote:<br>>> #!/bin/sh<br>>><br>
>> TODAY=date +%Y%m%d<br>><br>> You need back tics or $(shell ) in the above line.<br>><br>> --<br>> Paul Gray -o)<br>> 323 Wright Hall /\\
<br>> University of Northern Iowa _\_V<br>> Message void if penguin violated ... Don't mess with the penguin<br>> _______________________________________________<br>> Cialug mailing list<br>
> <a href="mailto:Cialug@cialug.org">Cialug@cialug.org</a><br>> <a href="http://cialug.org/mailman/listinfo/cialug">http://cialug.org/mailman/listinfo/cialug</a><br>><br>--<br>Bryan Baker<br>Technology Advocate<br>
Iowa Legal Aid<br>Suite 230<br>1111 9th Street<br>Des Moines, Ia 50314-2527<br><br>(515) 243-2151 (x1635)<br><br><a href="http://www.iowalegalaid.org">http://www.iowalegalaid.org</a><br><a href="mailto:bbaker@iowalaw.org">
bbaker@iowalaw.org</a><br><br>_______________________________________________<br>Cialug mailing list<br><a href="mailto:Cialug@cialug.org">Cialug@cialug.org</a><br><a href="http://cialug.org/mailman/listinfo/cialug">http://cialug.org/mailman/listinfo/cialug
</a><br></blockquote></div><br>