![]() |
|
|
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 |
| Reading from Lotus notes mail server | misenkiser | Shell Programming and Scripting | 0 | 10-05-2006 05:13 AM |
| send mail to a UNIX machine to my Lotus Notes | hugo | UNIX for Advanced & Expert Users | 1 | 09-19-2002 11:49 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 |
|
|
|
||||
|
The file names are identical but unique? Do you mean send mail to a bunch of users? Code:
for user in tom dick harry; do uuencode $user/identical.pdf | mailx -s "Your personal PDF" $user@domain.example.com done This assumes you have three users, and three directories named after those users. So it will send tom/identical.pdf to tom@domain.example.com, dick/identical.pdf to dick@domain.example.com, and harry/identical.pdf to harry@domain.example.com If this is not what you wanted, perhaps you can explain in more detail. See also the FAQ: How do I send email? - The UNIX Forums Update: Apparently Lotsa Nuts doesn't grok uuencode so you will need something like http://www.unix.com/faq-submission-q...tachments.html Last edited by era; 04-24-2008 at 07:30 AM.. Reason: Oops, Notes |
|
|||||
|
Quote:
Code:
for user in tom dick harry; do tar cvf /tmp/$user_identical.tar $user/identical.pdf ( uuencode /tmp/$user_identical.tar /tmp/$user_identical.tar) | mailx -s "Your personal PDF" $user@domain.example.com \rm -rf /tmp/$user_identical.tar 2>/dev/null done Or of course with multiple attachments! |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|