HELP!
I am desperately trying to write a unix shell script (sh) to get information from the daemon.log file.
What I am trying to capture from this file is whenever a tape becomes full it writes to this log something like this;
"media notice: dlt7000 tape abc.123 on /dev/rmt/1ubn if full"
I need to capture that message and parse out the name of the tape that I need to feed to the scipt that's to be spawned off. The other issue with this daemon.log file is it doesn't write one file for each day, so I need to make sure that the message I am capturing is from the last 24 hours.
Also there are 7 dlt tape drives so I need to capture this event for each tape drive.
Any help would be appreciated. My scripting skills are VERY limited.
Thanks.
I am desperately trying to write a unix shell script (sh) to get information from the daemon.log file.
What I am trying to capture from this file is whenever a tape becomes full it writes to this log something like this;
"media notice: dlt7000 tape abc.123 on /dev/rmt/1ubn if full"
I need to capture that message and parse out the name of the tape that I need to feed to the scipt that's to be spawned off. The other issue with this daemon.log file is it doesn't write one file for each day, so I need to make sure that the message I am capturing is from the last 24 hours.
Also there are 7 dlt tape drives so I need to capture this event for each tape drive.
Any help would be appreciated. My scripting skills are VERY limited.
Thanks.