Solved

How do I email an attached .tar file in aix

Posted on 2011-02-18
8
481 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
  • 5
  • 3
8 Comments
 
LVL 68

Assisted Solution

by:woolmilkporc
woolmilkporc earned 500 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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
 

Author Comment

by:TIMFOX123
Comment Utility
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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
Comment Utility
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
Comment Utility
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 500 total points
Comment Utility
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
Comment Utility
What exactly was the solution of this issue?

Thx for the points!

wmp
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
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.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now