Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Nov 2007 12:30:10 -0500
From:      Bill Moran <wmoran@potentialtech.com>
To:        Bill Banks <office@ourweb.net>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: shell programming
Message-ID:  <20071114123010.f6ab79cf.wmoran@potentialtech.com>
In-Reply-To: <473B2F54.7030208@ourweb.net>
References:  <47349D10.20709@ourweb.net> <20071109193001.Y20961@wojtek.tensor.gdynia.pl> <473B2F54.7030208@ourweb.net>

next in thread | previous in thread | raw e-mail | index | archive | help
In response to Bill Banks <office@ourweb.net>:

> What am I doing wrough here:
> 
> #!/bin/sh
>  $DAYN='/bin/date +%a' + "_master.sql"
>  mysqldump master > $DAYN

Those look to be single quotes and not backquotes.  (backquote is
the upper left key on most keyboards)

> 
> 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@freebsd.org mailing list
> >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> >> To unsubscribe, send any mail to 
> >> "freebsd-questions-unsubscribe@freebsd.org"
> >>
> >>
> >
> >
> 
> -- 
> -----------------------------------------------
> Bill Banks                         508-829-2005
> Wachusett Programming              Ourweb
> http://www.ourweb.net
> http://www.ourwebtemplates.com
>   
> 
> 
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


-- 
Bill Moran
http://www.potentialtech.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071114123010.f6ab79cf.wmoran>