shell programming

Bill Banks office at ourweb.net
Wed Nov 14 09:24:38 PST 2007


What am I doing wrough here:

#!/bin/sh
 $DAYN='/bin/date +%a' + "_master.sql"
 mysqldump master > $DAYN

Wojciech Puchar wrote:
> dayoftheweek=`date +%w`
>
>
>
> On Fri, 9 Nov 2007, Bill Banks wrote:
>
>> I'm  writing a backup script. I need to get the day of the week into 
>> a variable. How can I do it?
>>
>> -- 
>> -----------------------------------------------
>> Bill Banks                         508-829-2005
>> Wachusett Programming              Ourweb
>> http://www.ourweb.net
>> http://www.ourwebtemplates.com
>>
>>
>> _______________________________________________
>> freebsd-questions at freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to 
>> "freebsd-questions-unsubscribe at freebsd.org"
>>
>>
>
>

-- 
-----------------------------------------------
Bill Banks                         508-829-2005
Wachusett Programming              Ourweb
http://www.ourweb.net
http://www.ourwebtemplates.com
  




More information about the freebsd-questions mailing list