RE: Importing Date to Bash Script

1998-05-26 Thread Canary, Robert W.
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" e

RE: Importing Date to Bash Script

1998-05-26 Thread David . LANDGREN
>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 pr

Importing Date to Bash Script

1998-05-26 Thread Canary, Robert W.
Hi, 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. Also, How do I write to the message log file via the syslogd? thanks in advance -- robert -- PLEASE read the Red Hat FAQ, Tips, Errata and the