- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Sending e-mail with zip file attachment via mailx ...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2005 05:27 AM
тАО12-02-2005 05:27 AM
Sending e-mail with zip file attachment via mailx to Outlook
Thanks for the help.
tar cvf - BRKRCM.*.csv | compress > $ZIPFILE
uuencode $ZIPFILE $ZIPFILE | mailx -m -s "EPM Broker Commission CSV File"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2005 05:31 AM
тАО12-02-2005 05:31 AM
Re: Sending e-mail with zip file attachment via mailx to Outlook
http://hpux.ee.ualberta.ca/hppd/hpux/Users/mpack-1.6/
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2005 05:50 AM
тАО12-02-2005 05:50 AM
Re: Sending e-mail with zip file attachment via mailx to Outlook
You also might try gzip instead of compress. I've *generally* gotten better compression from gzip than from compress...
HTH;
Doug
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2005 06:08 AM
тАО12-02-2005 06:08 AM
Re: Sending e-mail with zip file attachment via mailx to Outlook
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2005 06:27 AM
тАО12-02-2005 06:27 AM
Re: Sending e-mail with zip file attachment via mailx to Outlook
You're not specifying an output file for the tar command "-" is for stdin not stdout. Might help breaking up the command line:
# tar cvf
# compress
# uuencode
cheers!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2005 06:39 AM
тАО12-02-2005 06:39 AM
Re: Sending e-mail with zip file attachment via mailx to Outlook
tar cvf - BRKRCM.*.csv | compress | uuencode $ZIPFILE | mailx -m -s "EPM Broker Commission CSV File"
As for WinZip handling compressed (Z) and tar archives, I've never had a problem. It's handled those formats for years and numerous versions.
Getting things to show up on the other end can be tricky, however. I think I've sent to Outlook clients before without the -m option on mailx.
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2005 06:46 AM
тАО12-02-2005 06:46 AM
Re: Sending e-mail with zip file attachment via mailx to Outlook
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2005 07:28 AM
тАО12-02-2005 07:28 AM
Re: Sending e-mail with zip file attachment via mailx to Outlook
Linda, I don't have a way to test with Outlook and WinZIP, but, if the attachment is showing up in Outlook all right, you might try 7-Zip as an alternative to WinZIP to see if that handles the file any better. Free software and it seemed to work fine on my little test case I ran.
www.7-zip.org
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2005 08:19 AM
тАО12-02-2005 08:19 AM
Re: Sending e-mail with zip file attachment via mailx to Outlook
Thanks for everyone's help.
tar cvf BRKRCM.tar BRKRCM.*.csv
gzip BRKRCM.tar
cp BRKRCM.tar.gz BRKRCM.tar.gzip
uuencode BRKRCM.tar.gzip BRKRCM.tar.gzip | mailx -m -s "EPM Broker Commission CSV File"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2005 09:19 AM
тАО12-02-2005 09:19 AM
Re: Sending e-mail with zip file attachment via mailx to Outlook
I used the same commands w/o renaming the "gz" file to "gzip" and WinZip had no problems opening them.
# tar cvf BRKRCM.tar BRKRCM.*.csv; gzip BRKRCM.tar
# uuencode BRKRCM.tar.gz BRKRCM.tar.gz | mailx -m -s "EPM Broker Commission CSV File"
my 2 cents!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-07-2005 08:06 AM
тАО12-07-2005 08:06 AM
Re: Sending e-mail with zip file attachment via mailx to Outlook
Just another opinion. We often use gzip since it's compression ratio is better than compress.
As with many windows users, we send files to, we were told the zipped file was corrupt.
Subsequent to that we found that WINRAR worked fine for unix zipped files.
Your mailx portion looks fine.
Best of luck.
Regards,
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-07-2005 12:34 PM
тАО12-07-2005 12:34 PM
Re: Sending e-mail with zip file attachment via mailx to Outlook
There's two close choices:
-Install a better archive handler on Windows (winrar, winace, winzip, to my knowledge all have to be licensed for at least commercial use)
- Compile pkzip on HP-UX (works, but the manhours involved will equal the license cost; still a useful idea.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2007 08:35 AM
тАО06-15-2007 08:35 AM
Re: Sending e-mail with zip file attachment via mailx to Outlook
It is very useful info you have posted. I wanted to the same thing but my client OS is Linux. Any ideas?
I appreciate you help or any forum members help.
Regards,
Keerat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2007 09:16 AM
тАО06-15-2007 09:16 AM
Re: Sending e-mail with zip file attachment via mailx to Outlook
This would work better in a new thread, but
that new thread can refer to this old one.
> my client OS is Linux.
So you want to send e-mail with an attachment
from an HP-UX system to a Linux system? The
methods shown here should work, but the best
answer may depend on the e-mail client
program at the destination.
By the way, ...
> - Compile pkzip on HP-UX (works, but the
> manhours involved will equal the license
> cost; still a useful idea.)
Info-ZIP's (free) Zip and UnZip programs work
just fine on HP-UX, if you're looking for a
more Windows-compatible file compress/archive
method.
http://www.info-zip.org/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2007 09:35 AM
тАО06-15-2007 09:35 AM
Re: Sending e-mail with zip file attachment via mailx to Outlook
I have tried everything and no luck :-(
???
Keerat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2007 09:44 AM
тАО06-15-2007 09:44 AM
Re: Sending e-mail with zip file attachment via mailx to Outlook
Obviously not true. For example, you
haven't tried asking about Linux in a Linux
forum.
And when you start a new thread in the right
place, you might say _which_ Linux (and which
version). Then you might give an example of
what you have tried, with an explanation of
what went wrong when you tried it. It's
often difficult to diagnose "no luck" without
more information than "no luck".