![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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 |
|
||||
|
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? |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|