Solved

How do I email an attached .tar file in aix

Posted on 2011-02-18
8
498 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 500 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 500 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 500 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 Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Upgraded from Debian 7 to 8.7 and got black screen 20 122
Can't connect to FTP 18 154
exchange, squid, proxy, linux 6 87
/etc/sudoers on Solaris 2 19
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

734 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