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 > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Encrypted Email to Lotus notes Anamika UNIX for Dummies Questions & Answers 3 08-19-2004 02:35 PM
Lotus Notes on Solaris jpeery UNIX for Advanced & Expert Users 4 08-09-2004 06:50 AM
unix to Lotus Notes email attachment wilsonchan1000 UNIX for Dummies Questions & Answers 7 02-09-2002 10:46 PM
unix to Lotus Notes email attachment cowgilm How do I send email? 3 02-12-2001 05:21 PM
unix to Lotus Notes email attachment cowgilm UNIX for Dummies Questions & Answers 3 02-12-2001 05:21 PM

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

Join Date: Apr 2007
Posts: 3
Question Sending mutiple files thru email to lotus notes

Hi All,

I am currently using the following script to send the single file to one/more email addresses. I need to send mutilple files at same time, are there anyway I could modify the script or write new one to accomplish the same.

Script
***************
#!/bin/ksh

# Author: Manish Vijayvergiya
# Purpose: Script to mail the processed error reports
# ModDate: 20070329

# Create the list of users to mail
export MAILLIST="richard@coty,manish_vijayvergiya@coty"

export MAILCMD=$(which mail)

# Mail the report to the prospective users
${MAILCMD} -s "Error Reports for $(date +%x)" ${MAILLIST} < /ec/rpt/err/pperrorOTHR10.rpt
******************************************

Thanks in advance, please help me.
Manish
  #2 (permalink)  
Old 04-09-2007
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,206
Please see the mail topics in the frequently asked questions section.
  #3 (permalink)  
Old 04-10-2007
Devesh5683 Devesh5683 is offline
Registered User
  
 

Join Date: Apr 2007
Posts: 5
- u can simply zip multiple files into one file using zip command
- then send that zip file as attachment in the mail


devesh
  #4 (permalink)  
Old 04-16-2007
lapisguy lapisguy is offline
Registered User
  
 

Join Date: Apr 2007
Posts: 3
Sending as attachment

Thanks all for the response.
I did zip the file but it goes as inline text, I want to send as an attachment?

***********************************
#!/bin/ksh

# Author: Manish Vijayvergiya
# Purpose: Script to mail the error report to users based on the chain ids
# ModDate: 20070413

# Create the list of users to mail
export MAILLIST="manish_vijayvergiya@coty"

export MAILCMD=$(which mail)
cd /ec/rpt/err
#ls pperrorOTHR* > fl_list
#set fl=fl_list
tar -cvf rpt.tar pperrorOTHR60.rpt pperrorOTHR10.rpt pperrorOTHR31.rpt
gzip -c rpt.tar > rpt.gz

# Mail the report to the prospective users
${MAILCMD} -s "Error Reports for $(date +%x)" ${MAILLIST} < rpt.gz

*************

Please help?
  #5 (permalink)  
Old 04-16-2007
vgersh99's Avatar
vgersh99 vgersh99 is online now Forum Staff  
Moderator
  
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 5,119
once again, browse the FAQs
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 09:39 AM.


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