shell programming

Bill Moran wmoran at potentialtech.com
Wed Nov 14 09:30:13 PST 2007


In response to Bill Banks <office at 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 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
>   
> 
> 
> _______________________________________________
> 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 Moran
http://www.potentialtech.com


More information about the freebsd-questions mailing list