Please Help.
I'm trying to write a script on Machine A that logs into Machine B that is rotating log files every half hour. So what I want to do is pull the latest file based on the date.
cd /temp
file_20091027130000
file_20091027133000
file_20091027140000
file_20091027143000
So at 13:15 I would want to perform a cat on the 1300 file.
13:45 the 1330 file
14:15 the 1400 file
etc...
I plan on putting the script into the cron on machine A, to login to machine B twice an hour and capture the information to a file on machine A.
Any suggestions ?
I'm trying to write a script on Machine A that logs into Machine B that is rotating log files every half hour. So what I want to do is pull the latest file based on the date.
cd /temp
file_20091027130000
file_20091027133000
file_20091027140000
file_20091027143000
So at 13:15 I would want to perform a cat on the 1300 file.
13:45 the 1330 file
14:15 the 1400 file
etc...
I plan on putting the script into the cron on machine A, to login to machine B twice an hour and capture the information to a file on machine A.
Any suggestions ?