The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to send a mail using elm in cc list? svenkatareddy Shell Programming and Scripting 0 03-03-2008 07:41 AM
mail servers agoemann23 UNIX for Dummies Questions & Answers 1 07-01-2005 06:29 PM
e-mail client supporting HTTP mail servers babayeve UNIX for Dummies Questions & Answers 0 05-21-2005 03:10 AM
Final Top mail servers cipango News, Links, Events and Announcements 0 08-13-2002 03:48 AM
Linux mail servers benchmarks (Qmail, Sendmail,Postfix) cipango News, Links, Events and Announcements 0 07-26-2002 01:30 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-07-2007
AshishK AshishK is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 5
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 (permalink)  
Old 10-07-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
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.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:42 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0