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 > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

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 08:15 AM
uuencode/mailx ocelot Shell Programming and Scripting 1 01-11-2008 08:28 AM
Problem with uuencode markms Shell Programming and Scripting 0 04-07-2006 12:13 PM
Uuencode problem in mail attachment mvalonso UNIX for Dummies Questions & Answers 8 03-16-2006 01:38 PM
mailx and uuencode question ssmiths001 Shell Programming and Scripting 1 10-21-2005 05:43 AM

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 10-21-2008
zeekstern zeekstern is offline
Registered User
  
 

Join Date: Apr 2007
Posts: 3
uuencode and mailx problem

We are running solaris 9.
I can send emails using mailx with no problems.
I can send attachments using uuencode no problems.
What I can't do is change the name to .txt or .doc or anything else using uuencode. The command I am using is:

uuencode /tmp/AsetReports /tmp/AsetReports.doc | mailx -s "Weekly Aset Reports" admin

The logs and using the -v option shows that the mail is being queued:
stat=Sent (Ok: queued as 6A77F500007)

There is nothing in var/spool/mqueue and I never receive the email. The mailq command also shows nothing as does the clientq.

As I mentioned, if I remove the .doc extension, I do indeed get the attachment just fine.

Any help would be greatly appreciated.

Thanks,
Zeek
  #2 (permalink)  
Old 10-22-2008
Annihilannic Annihilannic is offline Forum Advisor  
  
 

Join Date: May 2008
Location: Sydney, Australia
Posts: 1,009
uuencode's command-line arguments are confusing in that the optional argument is the first one (which is the attachment name), not the last one (which is the source filename). So the correct syntax for what you want should be uuencode AsetReports.doc /tmp/AsetReports.
  #3 (permalink)  
Old 10-22-2008
zeekstern zeekstern is offline
Registered User
  
 

Join Date: Apr 2007
Posts: 3
Darn, thanks Annihilannic. I must have read the man pages a 100 times and didn't notice that. I even read a heck of a lot of posts that had them reversed like I did because that's how I got the idea to add the .doc extension.

Zeek
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 12:56 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