- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Mail attachment from command 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
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
тАО10-05-2001 02:59 AM
тАО10-05-2001 02:59 AM
I hope,I find answer for my problem. ;)
I need sent text file via mail to Exchange server. I've tried something like this :
mailx -s 'subject' name@domain < file,
elm -s 'subject' name@domain < file ([include ******])
but not works ....
I can sent attachment via elm menu but I need it from command line ...
Radim
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2001 03:30 AM
тАО10-05-2001 03:30 AM
Re: Mail attachment from command line
Have a look here:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,11866,0x41950559ff7cd4118fef0090279cd0f9,00.html
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2001 04:19 AM
тАО10-05-2001 04:19 AM
Re: Mail attachment from command line
I had tried it before I wrote this email. :(
It doesn't work. I read about patch, which solve problem with elm but it's for 10.20 and I'm using 11.00. I'm not sure if the problem is in the 11.00.
Problem :
I have log file from sqlplus in good format, when I recived it via mail so the format is bad. I have idea sent this file like attachment and it's all what I need ....
Thx in advance
Radim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2001 04:31 AM
тАО10-05-2001 04:31 AM
Re: Mail attachment from command line
The link James pointed to you is pretty good, have you tried all the replies from it ?
Sending text files to exchange as attachments is easy, use uuencode;
uuencode
Works fine on our site. If mailx no good try using sendmail.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2001 05:10 AM
тАО10-05-2001 05:10 AM
Re: Mail attachment from command line
now I'm cleverer ...
It works only with sendmail - enough for me.
One question - I hope last ... :)
Which parameters I have to use when I want to specify subject, because -s isn't right.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2001 05:16 AM
тАО10-05-2001 05:16 AM
Re: Mail attachment from command line
With sendmail, you specify the subject in the message body as follows:
Subject: This is the subject
Rest of message..
.....
.....
.....
In other words, begin the 1st line with "Subject: ", followed by an empty line (no spaces, tabs, etc.), followed by the rest of the message.
Rgds, Robin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2001 05:29 AM
тАО10-05-2001 05:29 AM
Re: Mail attachment from command line
you're right.
But I'd like have more ...
Mail with txt file and subject. I'm afraid that this combination isn't possible ..
Do you agree with me ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2001 05:37 AM
тАО10-05-2001 05:37 AM
Re: Mail attachment from command line
Mailing a text file requires alittle 'tweeking', from the command line. Take a look at this thread for some info on this:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x7d6087dc4d7dd5118ff00090279cd0f9,00.html
Regards,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2001 05:43 AM
тАО10-05-2001 05:43 AM
SolutionThis worked for me:
==================================
(echo Subject: This is a test
echo hello ;uuencode /tmp/s.pl /tmp/s.pl) | sendmail robin.wakefield@ubsw.com
==================================
Let me know how you get on.
Rgds, Robin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2001 05:56 AM
тАО10-05-2001 05:56 AM
Re: Mail attachment from command line
This is how I use on my machines.
#/usr/bin/uuencode report.txt report.txt |mailx -m -s "Performance Report for host "
Thanks.
Prashant.