>what is the correct sytax for importing the system date and time into a
bash >script?
>
>I need to assign this to variable that I can manipulate.

TODAY = $(date)
YESTERDAY = `date --yesterday`
echo "Today is $TODAY"
echo "Yesterday was $YESTERDAY"

You use backticks to capture the output of a program. However, it gets
fiddly if not impossible to nest them. The $( ) idiom is to be preferred, as
you can nest them easily to an arbitrary depth.

>Also,  How do I write to the message log file via the syslogd?

I profess complete ignorance here. What documentation have you already
looked at?

DL


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to