- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: mail command
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
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
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
08-20-2007 05:06 PM
08-20-2007 05:06 PM
I need to attach a document in a mail and send it from HP-UX box to my personal mail id. when i gave the following command,trying to attach abc.txt,
uuencode abc.txt abc.txt |mail id@domain.com,
i could receive the mail but there is no new line in the received file..all the lines gets displayed in a single line with a box as delimeter. Can this be over come?
Solved! Go to Solution.
- Tags:
- attachments
- mailx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2007 05:12 PM
08-20-2007 05:12 PM
Solutionux2dos abc.txt
Prepend this before your command and pipe the output to your command mentioned above.
ux2dos abc.txt|uuencode abc.txt abc.txt |mail id@domain.com
Should solve it for you.
:)
Anshu
- Tags:
- ux2dos
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2007 05:13 PM
08-20-2007 05:13 PM
Re: mail command
Hi viseshu,
Here is the steps
http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c01028039-2
WK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2007 05:17 PM
08-20-2007 05:17 PM
Re: mail command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2007 05:17 PM
08-20-2007 05:17 PM
Re: mail command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2007 05:23 PM
08-20-2007 05:23 PM
Re: mail command
I could not login to the url u have given, please help me out.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2007 05:27 PM
08-20-2007 05:27 PM
Re: mail command
>Anshu: ux2dos abc.txt|uuencode abc.txt abc.txt |mail id@domain.com
When you want uuencode to take it from stdin, you only want one filename:
ux2dos abc.txt | uuencode abc.txt | mail id@domain.com
- Tags:
- uuencode
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2007 05:29 PM
08-20-2007 05:29 PM
Re: mail command
uuencode /tmp/abc.txt abc.txt | mailx -m -s "hi" id@domain.com
Your issue replicated.File as attachment with square as attachement.
but with
ux2dos abc.txt | uuencode abc.txt| mailx -m -s "hi" id@domain.com
No issue. File received in redable format without squares.
could you use the above and let me know the result. I used mailx if you noticed!!
use mailx and test. Post Results.....
PS: Please assign points if this solves. I hope i would. :)
Anshu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2007 05:30 PM
08-20-2007 05:30 PM
Re: mail command
In my above example i did that..... ;)
Thanks for pointing out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2007 05:33 PM
08-20-2007 05:33 PM
Re: mail command
Dennins is correct in saying that wordpad reads the same file sucessfully while notepad isnt able to and shows squares.
You may open it with wordpad w/o issues. But most of the time default file assignment of txt files are with notepad. :)
Cheers!!
Anshu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2007 05:34 PM
08-20-2007 05:34 PM
Re: mail command
Viseshu,
Same document as Ashu given. Please link your ITRC system handle, so that you can access to our knowledge base.
WL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2007 05:34 PM
08-20-2007 05:34 PM
Re: mail command
My previous reply had the solution.
Basically, pipe/stdin is ignored on most commands if you specify a file on the command line.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2007 05:34 PM
08-20-2007 05:34 PM
Re: mail command
Viseshu,
Same document as Ashu given. Please link your ITRC system handle, so that you can access to our knowledge base.
WK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2007 05:38 PM
08-20-2007 05:38 PM
Re: mail command
Using ux2dos abc.txt | uuencode abc.txt|mail id@domain.com, work is done but i can see one square in last line of the txt document. Can this square be suppressed. :(
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2007 05:55 PM
08-20-2007 05:55 PM
Re: mail command
ux2dos(1) adds a control-Z to the end for DOS. But you are using windows and it no longer likes that.
I suppose you can use tr(1) to remove it:
ux2dos abc.txt | tr -d '\032' | uuencode abc.txt | mail id@domain.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2007 06:00 PM
08-20-2007 06:00 PM
Re: mail command
Still, i prefer to use wordpad. ;)
Thanks Dennins for wordpad enlightment!!
Anshu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2007 06:21 PM
08-20-2007 06:21 PM
Re: mail command
Its done!!!!