- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How can i send information from unix as attach...
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
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
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
тАО05-27-2007 10:19 AM
тАО05-27-2007 10:19 AM
please let me know ...
i mean , i have problems, one file than i'm sending with mail command contains "~" and it is beind sent incompleted ... it missed this part:
~MO*1*17~Iaa*1*88888843535435*JOOJKD~
also it is saying: Unknown tilde escape.
i want to send it as attached file, how can i do that.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2007 10:48 AM
тАО05-27-2007 10:48 AM
Solutionhp-ux mail attachment
or:
hp-ux mail attachment mpack
The key is to use a program like uuencode or
mpack to encode the file data into
e-mail-safe ASCII characters.
Many people seem to use uuencode instead of
mpack, but I like the more modern mpack.
(But I don't do this much.)
This one looked useful to me, for example:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1055549
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2007 02:32 PM
тАО05-27-2007 02:32 PM
Re: How can i send information from unix as attached file?
Try this,
uuencode a.txt a.txt | mail manuales@mailbox.com
SK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2007 02:47 PM
тАО05-27-2007 02:47 PM
Re: How can i send information from unix as attached file?
THANKS !!!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2007 03:19 PM
тАО05-27-2007 03:19 PM
Re: How can i send information from unix as attached file?
This did not work:
ux2dos /path_to/some_file | uuencode some_file.txt | mailx -m -s "MAIL FROM Someone" someone@somewhere.com <
file_for_email_body
it works but with no attached file :(
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2007 05:01 PM
тАО05-27-2007 05:01 PM
Re: How can i send information from unix as attached file?
can you try this instead:
export emailadd="someone@somewhere.com"
export subject="MAIL FROM Someone"
export convertedFile="/tmp/some_file.txt"
export sourceFile="/path_to/some_file"
/usr/bin/ux2dos $sourceFile > $convertedFile
/usr/bin/uuencode $covertedFile "some_file.txt"|mailx -m -s "$subject" $emailadd1
hope this helps!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2007 05:59 PM
тАО05-27-2007 05:59 PM
Re: How can i send information from unix as attached file?
If you still get problems, just check the below program base64
http://www.fourmilab.ch/webtools/base64/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2007 06:34 PM
тАО05-27-2007 06:34 PM
Re: How can i send information from unix as attached file?
Did you try looking at what comes out of the
pipeline at various stages?
ux2dos /path_to/some_file
ux2dos /path_to/some_file | uuencode some_file.txt
(What was this supposed to do? "man
uuencode"?)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2007 06:37 PM
тАО05-27-2007 06:37 PM
Re: How can i send information from unix as attached file?
uuencode accepts 2 options. If you give only 1 option, it will hang. One option is the file attachment itself the other option , the name to be used for the attachment. in your case, since it is a.txt, hence...
uuencode a.txt a.txt | mail "you_mail_id"
Note, if you attache, you need not do a unix2dos conversion...
SK