Solved

How do I email an attached .tar file in aix

Posted on 2011-02-18
8
485 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
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
 

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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

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…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

912 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

16 Experts available now in Live!

Get 1:1 Help Now