[SLUG] bash script problem

From: Ron Youvan (ka4inm@tampabay.rr.com)
Date: Wed Oct 05 2005 - 19:41:34 EDT


Hi all:

   I am having a bit of trouble with a bash scripting problem,
where I never expected it. (Slackware OS w/o the X window system)
   I have DOS text strings coming to me over a fiber optic circuit
through a "IP serial server," ever 5 minutes I get one, 60 or so
character lines, and every other time I get two such strings.
   (one source very 5 minutes, another every 10 minutes)

   I need to create a new file every 24 hours and start appending
these incoming strings into the new file.
   I want to name the files with the current date, so:
"at" midnight the file: date +.+ log needs to be created,
such as 12-25-05.log (for next Christmas) as an example.
I can divert date's string into a file as a text string,
but I haven't been able to create a file named from date.

man date says: "date - print or set the system date and time"
It prints the system time, but getting it into a variable
seems to be my problem.
   I have tried everything that I can think of including:
touch < date (+formatting info)

   Can anyone please point me in the proper direction?

-- 
    Ron
-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS).  Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 17:57:15 EDT