- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Sendmail Attachments
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
02-13-2002 06:45 AM
02-13-2002 06:45 AM
Sendmail Attachments
I have a small script that emails a log to several people every week. I was wondering how I would attach a file to this email using just shell commands.
Thanks in advance,
Christian Briddon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2002 06:49 AM
02-13-2002 06:49 AM
Re: Sendmail Attachments
do
uuencode $i $i.txt
done|mailx -m -s "test" username@whereever.com
note the uuencode and the ".txt" at the end of the second $i, this allows the files to be seen as text files.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2002 06:52 AM
02-13-2002 06:52 AM
Re: Sendmail Attachments
Try
/usr/bin/uuencode
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2002 06:53 AM
02-13-2002 06:53 AM
Re: Sendmail Attachments
Check this out:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xa7f93c853cd9d5118ff40090279cd0f9,00.html
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2002 06:55 AM
02-13-2002 06:55 AM
Re: Sendmail Attachments
Using straight sendmail:
(echo 'Subject:This is the subject
this is a test';uuencode /tmp/file /tmp/file.txt)| /usr/lib/sendmail robin.wakefield@ubsw.com
Note the Subject line has a blank line after it, and the uuencoded file has a .txt extension.
Rgds, Robin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2002 06:56 AM
02-13-2002 06:56 AM
Re: Sendmail Attachments
Check out the top read solutions at the bottom in the hp-ux link,
http://forums.itrc.hp.com/cm/FamilyHome/1,11864,117,00.html
this is the thread,
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x41950559ff7cd4118fef0090279cd0f9,00.html
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2002 07:20 AM
02-13-2002 07:20 AM
Re: Sendmail Attachments
I have allocated points to you all.
Cheers,
Christian