want to mail a list of files in different servers

Hi All,

I am running my script in crontab and it is generating a file everyday.

And I have 10 different servers and i am running the same script in every server in crontab which generates a file in every server per day.

I want to retrieve those files from each server everyday.

I want to merge ( append ) the contents of all the files ( which are in different servers ) into one single file and then mail the final file to my mail id.

How can I merge those files from different servers. It has to be dynamically done after the creation of the file everyday so that I can get 1 file having the information of all servers. Mostly I have to keep that as well in the crontab.

Plz help me....Awaiting for your response.

Thanks in advance

You could use scp to recover the files from the different servers.

You could then use tar or zip to combine the files into one file.

Or you could have them as different attachments in the email.