Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 547
  • Last Modified:

How do I email an attached .tar file in aix

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
TIMFOX123
Asked:
TIMFOX123
  • 5
  • 3
3 Solutions
 
woolmilkporcCommented:
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
 
TIMFOX123Author Commented:
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
 
woolmilkporcCommented:
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
TIMFOX123Author Commented:
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
 
woolmilkporcCommented:
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
 
TIMFOX123Author Commented:
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
 
woolmilkporcCommented:
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
 
woolmilkporcCommented:
What exactly was the solution of this issue?

Thx for the points!

wmp
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now