I am needing to write a script that will allow me to do the following:
I am running on SCO OpenServer 5.0.4
I have over 25 servers on my network...
Currently, once an our, I get logdata files from each of the servers and 'cat' them together if they have the same application ID (i.e. all the 'art0528.mmdd' files are cat together to create one log file for that application.
What I want to do sometime right after midnight, is write a script to look at all the similar files on each server as mentioned above and make sure my "cat" file is equal to the size of ALL the individual files for that day.
I hope that makes sense. In a nutshell, if server 1 has
art0528.0710 with a file size of 3241 ; and server 2 has
art0528.0710 with a file size of 1168 ; then, at the end of
the day, two things will have occurred: (1) the files will still INDIVIDUALLY be on the respective server they originated from; (2) I will have a "cat-ted" file that will be on a separte server that will be : art0528.0710 with a file size of 4409 (the same as the two individual files combined)
Thus, I need a script that will look at all the "cat-ted" files at the end of the day and make sure that file size matches the total of all the individual file sizes from all the servers.
Thanks for any assistance anyone out there can give me.
sullmann@telespectrum.com
I am running on SCO OpenServer 5.0.4
I have over 25 servers on my network...
Currently, once an our, I get logdata files from each of the servers and 'cat' them together if they have the same application ID (i.e. all the 'art0528.mmdd' files are cat together to create one log file for that application.
What I want to do sometime right after midnight, is write a script to look at all the similar files on each server as mentioned above and make sure my "cat" file is equal to the size of ALL the individual files for that day.
I hope that makes sense. In a nutshell, if server 1 has
art0528.0710 with a file size of 3241 ; and server 2 has
art0528.0710 with a file size of 1168 ; then, at the end of
the day, two things will have occurred: (1) the files will still INDIVIDUALLY be on the respective server they originated from; (2) I will have a "cat-ted" file that will be on a separte server that will be : art0528.0710 with a file size of 4409 (the same as the two individual files combined)
Thus, I need a script that will look at all the "cat-ted" files at the end of the day and make sure that file size matches the total of all the individual file sizes from all the servers.
Thanks for any assistance anyone out there can give me.
sullmann@telespectrum.com