- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- when use mail or sendmail to mail on comamnd line ...
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
01-14-2002 01:52 AM
01-14-2002 01:52 AM
when use mail or sendmail to mail on comamnd line , how to attach a file ?
Sunny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2002 01:54 AM
01-14-2002 01:54 AM
Re: when use mail or sendmail to mail on comamnd line , how to attach a file ?
uuencode
or
uuencode
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2002 05:26 AM
01-14-2002 05:26 AM
Re: when use mail or sendmail to mail on comamnd line , how to attach a file ?
http://my1.itrc.hp.com/cm/QuestionAnswer/1,,0x41950559ff7cd4118fef0090279cd0f9!0,00.html
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2002 06:59 AM
01-14-2002 06:59 AM
Re: when use mail or sendmail to mail on comamnd line , how to attach a file ?
We use mutt as our mail agent. It is a 'mongrel' of a tool, combining both usenet and email into a single utility. It is well written and handy. http://www.mutt.org.
Its uses -a (attach) flag for its command line. Hence the command:
date|mutt -a SOMEFILE SOMEADDRESS attaches the file in a MIME compliant manner and emails it to the specified address, and the date will be in the text of the message.
Check it out.
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2002 07:02 AM
01-14-2002 07:02 AM
Re: when use mail or sendmail to mail on comamnd line , how to attach a file ?
Try this,
usr/bin/uuencode file file |mailx -m -s "The Subject" email_id
Goodluck,
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2002 07:26 AM
01-14-2002 07:26 AM
Re: when use mail or sendmail to mail on comamnd line , how to attach a file ?
I use this way
/usr/bin/uuencode attach-file attach-file |mailx -m -s "The Heading for email"
You can send only one attachment at a time with this.
Thanks.
Prashant Deshpande.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2002 05:08 PM
01-14-2002 05:08 PM
Re: when use mail or sendmail to mail on comamnd line , how to attach a file ?
Thanks for help.
i can not find unencode on the my machine (hp11.0), is it installed with the operation system. where to find it?
Sunny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2002 05:12 PM
01-14-2002 05:12 PM
Re: when use mail or sendmail to mail on comamnd line , how to attach a file ?
'uuencode' is part of the core operating
system. The binary itself can be found
in '/usr/bin/uuencode'
The man pages are located in
'/usr/share/man/man1.Z/uuencode.1 /usr/share/man/man4.Z/uuencode.4'
without quotes
HTH
-Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2002 06:37 PM
01-14-2002 06:37 PM
Re: when use mail or sendmail to mail on comamnd line , how to attach a file ?
I got it.
Sunny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2002 07:00 PM
01-14-2002 07:00 PM
Re: when use mail or sendmail to mail on comamnd line , how to attach a file ?
when I use: uuencode uucp|mailx -m -s "test" ys@oa_server , the command donot end.
when use :/usr/uuencode uucp |mailx -m -s "test" ys@oa_server, I got the mail, but the
attached file is 0 byte.
why?
thanks
Sunny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2002 07:19 PM
01-14-2002 07:19 PM
Re: when use mail or sendmail to mail on comamnd line , how to attach a file ?
Try this:
/usr/bin/uuencode /usr/bin/uucp /usr/bin/uucp | mailx -m -s "subject" user@domain.com
You need to make sure that you use the full path when specifying the file, and you must specify it twice.
HTH
-Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2002 07:39 PM
01-14-2002 07:39 PM
Re: when use mail or sendmail to mail on comamnd line , how to attach a file ?
I do as you say, now I can get the mail ,but the uucp is appear to be text, not a attched files. is it because the uucp is a binary file?
thanks
Sunny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2002 08:18 PM
01-14-2002 08:18 PM
Re: when use mail or sendmail to mail on comamnd line , how to attach a file ?
I'm not sure why it doesn't work, I was able
to get the same file as 56KB but windows did
not know what the file was which is what I
would have expected seeing it was a binary.
What did you get ?
In the attached link there is additional
information on the subject.
http://us-support3.external.hp.com/cki/bin/doc.pl/sid=524b67180a7fab72dd/screen=ckiDisplayDocument?docId=200000054887756
HTH
-Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2002 08:29 PM
01-14-2002 08:29 PM
Re: when use mail or sendmail to mail on comamnd line , how to attach a file ?
I use sendmail instead of mailx, and now , it is ok.
thanks all
Sunny