want to mail a list of files in different servers


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users want to mail a list of files in different servers
# 1  
Old 10-07-2007
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
# 2  
Old 10-07-2007
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Required cpu , memory, df output in mail for multiple servers

I have prepared script which will collect cpu, memory and df out out for multiple server and send in one mail, but my script only run in one server, and when I send to mail, it shows in text format. it should be show actual format. if any one can help , that would be very grateful. script... (1 Reply)
Discussion started by: yash_message
1 Replies

2. Shell Programming and Scripting

List the IP address of list of servers

Hi I have a file containing server names and i can ssh to all these servers without password. Could any body suggest me how to list out IP address of all the servers? Now i am manually doing this, like ssh to each server and run "ifcong -a" command and copy the ipaddress to a excel sheet.... (5 Replies)
Discussion started by: kumar85shiv
5 Replies

3. UNIX for Dummies Questions & Answers

Linux telnet doesn't want to connect with mail servers

Hi, I have a problem which rely on the fact that I can't to connect from my Linux to any mail server (I have tried for example poczta.o2.pl 587 and poczta.onet.pl 587). It something strange because it works finely on Windows. Have you suggestions what can be source of troubles? I have tried to... (5 Replies)
Discussion started by: DavidMax
5 Replies

4. Shell Programming and Scripting

List and Compare Files accross different servers.

Hi all, This is my situation. First thing is I cannot use rsync to accomplish this. I don't have on my systems and we can't put it on. I run HP-UX 11v3. I have a list of files generated every day which tells me which files are not in sync with the rest of the servers.I want to ls -l the... (1 Reply)
Discussion started by: zixzix01
1 Replies

5. UNIX for Dummies Questions & Answers

dedicated mail servers

There are many email servers in the market and some good providers should be able to guide me through choosing them and also easy installation. can anybody give me idea of good providers please? (1 Reply)
Discussion started by: gunu81
1 Replies

6. Shell Programming and Scripting

Need a script to run on multiple mail servers..

Hello, I am a Unix newbie and I need a script in which I can run a command on multiple servers at work. The command is to start a storage process and I am sick of doing it manually on all servers.. Here's the command: /opt/bss/bin/snmptable -CB -v2c -c P67LzuBm hostname hrStorageTable... (4 Replies)
Discussion started by: kinyyy
4 Replies

7. UNIX for Dummies Questions & Answers

mail servers

What protocol would i use to transfer mail between two UNIX mail servers? (1 Reply)
Discussion started by: agoemann23
1 Replies

8. UNIX for Dummies Questions & Answers

e-mail client supporting HTTP mail servers

Hi all I want to know, is there any e-mail client in linux which supports HTTP mail servers. i am using fedora2. as far as investigated or tried I only find POP or IMAP mail server configuration in mozilla mail, ximian and there were no option such as HTTP. I can easily see my e-mail while i am... (0 Replies)
Discussion started by: babayeve
0 Replies

9. News, Links, Events and Announcements

Final Top mail servers

I just finished benchmarks for postfix. Now U can see who is faster (Sendmail, Qmail or postfix?) Try http://www.benchmarks.dmz.ro for more info. (0 Replies)
Discussion started by: cipango
0 Replies

10. News, Links, Events and Announcements

Linux mail servers benchmarks (Qmail, Sendmail,Postfix)

New Linux mail servers benchmarks website. Check out http://benchmarks.dmz.ro . (0 Replies)
Discussion started by: cipango
0 Replies
Login or Register to Ask a Question