The UNIX and Linux Forums  


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
problem with uuencode rjsha1 Shell Programming and Scripting 9 04-29-2009 09:15 AM
uuencode not working 150177 Linux 1 08-12-2008 01:46 PM
uuencode/mailx ocelot Shell Programming and Scripting 1 01-11-2008 08:28 AM
uuencode tejasingaraju17 Shell Programming and Scripting 2 11-20-2005 02:01 AM
UUencode UUdecode myelvis UNIX for Advanced & Expert Users 2 11-24-2003 03:59 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 02-17-2009
venkidhadha venkidhadha is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 19
Uuencode

Hi All,

I have a queryin the uuencode option. Actually i need to attach two files in a single mail.
I am aware of attaching a single file using the command below.

(echo " The first file ";uuencode file1 file1) | mailx -s " The files " venkidhadha@in.com

However i am not sure what would be the command for attaching mulitle of two files.
  #2 (permalink)  
Old 02-17-2009
amicon007 amicon007 is offline
Registered User
  
 

Join Date: Dec 2008
Posts: 21
This should work I guess.....

(echo " The first file ";uuencode file1 file1; echo " The sec file ";uuencode file2 file2) | mailx -s " The files " venkidhadha@in.com
  #3 (permalink)  
Old 02-17-2009
vgersh99's Avatar
vgersh99 vgersh99 is online now Forum Staff  
Moderator
  
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 5,125
Quote:
Originally Posted by amicon007 View Post
This should work I guess.....

(echo " The first file ";uuencode file1 file1; echo " The sec file ";uuencode file2 file2) | mailx -s " The files " venkidhadha@in.com
try it....
  #4 (permalink)  
Old 02-17-2009
amicon007 amicon007 is offline
Registered User
  
 

Join Date: Dec 2008
Posts: 21
Who me?? If yes, right now I cant as sendmail is not configured at this moment
  #5 (permalink)  
Old 02-17-2009
vgersh99's Avatar
vgersh99 vgersh99 is online now Forum Staff  
Moderator
  
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 5,125
My $.02, you cannot.
Either tar/zip/whatever to create an archive and uuencode a SINGLER archive and send it out.
OR
Create a MIME-compliant email with the REAL attachments. There're plenty of useful links and FAQs on this forum for it.
  #6 (permalink)  
Old 02-17-2009
amicon007 amicon007 is offline
Registered User
  
 

Join Date: Dec 2008
Posts: 21
Well I used the following in a script far long back on ksh; if I remember

{
unix2dos -437 file1 | uuencode file1 file1;
unix2dos -437 file2 | uuencode file2 file2;
} | mailx -s "Files" abc@yahoo.com

I fear if this doesn't work... Kindly confirm
  #7 (permalink)  
Old 02-17-2009
vgersh99's Avatar
vgersh99 vgersh99 is online now Forum Staff  
Moderator
  
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 5,125
no, it does not - at least on FreeBSD
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 05:11 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