Hi,
Thanks for the explaination on the $(). It worked very nicely.
As far as " How do I write to the message log file via the syslogd?",
someone post to me with a clue of "man logger". I looked at it but it
really didn't give me alot of explaination. I really want to post an entry
under the info facility, which is cued in the syslog.conf to show up in the
/var/log/info.log.
--
robert
----------
From: [EMAIL PROTECTED][SMTP:[EMAIL PROTECTED]]
Sent: Tuesday, May 26, 1998 3:10 AM
To: [EMAIL PROTECTED]
Cc: The recipient's address is unknown.
Subject: RE: Importing Date to Bash Script
>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?
--
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.