![]() |
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 |
| sendmail attachments | rbatte1 | UNIX for Dummies Questions & Answers | 4 | 04-01-2009 06:50 AM |
| Sending Attachments Through mailx | vrk1219 | HP-UX | 7 | 01-21-2009 03:18 PM |
| Aix Unix Mailx Attachments | darioa | AIX | 3 | 01-07-2009 01:09 PM |
| Problem with multiple excel attachments using mailx | ramanam2004 | UNIX for Advanced & Expert Users | 2 | 05-04-2006 02:07 AM |
| mailx error message : mailx: NUL changed to @ | BG_JrAdmin | UNIX for Dummies Questions & Answers | 2 | 12-01-2005 10:27 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
|
|
||||
|
ksh : using mailx and attachments
Hi
I want to use mailx command to send a message included more than one file. I tried to use uuencode in pipe but it could only generate one file. I would avoid using an archive file Thanks to read you. Mathieu |
|
||||
|
Thanks a lot Igor
I toke your idea to write my solution You could find it bellow : SUBJECT=$1 BODY=$2 RECIPIENT=$3 FILE=$4 #Files to attach (like /tmp/myfiles_*.txt) (cat $BODY for i in `ls -1 $FILE` do file_name=`basename $i` uuencode $i $file_name done ) | mailx -s "$SUBJECT" $RECIPIENT Regards Mathieu |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|