Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How do I email an attached .tar file in aix

Posted on 2011-02-18
8
Medium Priority
?
532 Views
Last Modified: 2012-05-11
this works in solaris because solars has mailx
uuencode  tar.tar    tar.tar   | mailx -s `hostname` Omar@pedaruski.com

I have solaris boxes that do not have mailx, this does not work..

Also if you know.... I also have redhat 4/5 boxes also.  

I have 50 files that need sent to me in a tar format. They add up to about 10 megs and the network will deliver them !!



 
0
Comment
Question by:TIMFOX123
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
8 Comments
 
LVL 68

Assisted Solution

by:woolmilkporc
woolmilkporc earned 2000 total points
ID: 34925322
Hi,

I'm not quite sure if I understand what you're after.

Sending mail with uuencoded attachments does not rely on the existence of "mailx".

Virtually every email client can do that, if there is no mailx there is perhaps"mail" or "mutt" or "pine".
You can even use "sendmail" itself as an email frontend.

wmp
0
 

Author Comment

by:TIMFOX123
ID: 34925728
I tried mail and my tar of 50 files became just one large file containing the other 50 files.  I had no idea where one started and the other one ended.  

Just taking the x off of mailx in that command does the one large file.  I need to provide the files individually.  
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 34925752
Your example has only one tar file.

So do you indeed have a script uuencoding one file after the other, or how should I imagine what you're actually trying to do?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:TIMFOX123
ID: 34925889
Oh, I need to do a script and do 50 attachments ?
 in mailx I can just send the tar file with the other 50 files in it.  EZ to do
0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 2000 total points
ID: 34926059
So you don't have 50 tar files, you just have one tar file containing 50 single files?
And you want to send the contents of the tar archive untarred as 50 individual attachments in one single mail?

And you're saying that the statement you posted in your Q would be able to do this?

What smart kind of mailx should this be? I never heard of such a feature, not with mail, mailx, or anything else.
0
 

Author Comment

by:TIMFOX123
ID: 34927184
I have 50 files I need to send.

I tared them up

uucp them | mailx  and under solaris I can recive a mail with one big tar file ( that includes the 50 txt files )  

I do it all the time with mailx

with mail it comes in as one large txt file that does me no good.

0
 
LVL 68

Assisted Solution

by:woolmilkporc
woolmilkporc earned 2000 total points
ID: 34927855
OK,

that's the normal way, and that should work with mailx as well as with mail!

I tested it with mail and mailx under AIX and all went well.
I don't have a Solaris box here, so I can't test.

Is it the same recipient in either case? If it's a different recipient - could it be that the recipient's mail client program is not aware how to open tar archives and would open them as textfiles instead?

Or maybe it's a question of uuencode? Do you use the same uuencode version in either case?

I just can't imagine that it's a problem of mail or mailx.

On the box where mailx works - did you check whether mail works there?

wmp

0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 34929405
What exactly was the solution of this issue?

Thx for the points!

wmp
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question