Sponsored Content
Top Forums Shell Programming and Scripting Sending an email with a body and attachments using uuencode Post 302769447 by 02JayJay02 on Tuesday 12th of February 2013 09:35:05 AM
Old 02-12-2013
Thats brill!!! thankyou Smilie
Just switching the order around has worked perfectly Smilie
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Sending attachments using email through shell script

Hi all, I have written a shell script which sends emails with attachments to our clients. All our attachments are simple flat files (.txt format). The script is working fine and sending the attachments to the mail-ids except that, when i am sending the attachments to non-outlook users (Like... (6 Replies)
Discussion started by: symhonian
6 Replies

2. UNIX for Dummies Questions & Answers

Email recipient problems with uuencode attachments

Most of my email attachments are fine, but some recipients get the email with the uuencode attachment included as "text" at the end of the body of the message. Has anybody seen this? It seems to happen most with yahoo, msn and other freebie email addresses. Thanks (1 Reply)
Discussion started by: Dave Miller
1 Replies

3. UNIX for Dummies Questions & Answers

Sending email attachments

Hello, I've search the forum, but I cannot find an answer to my specific question. I'm trying to send some files to my professor. Upon his request, I used the following: tar -cvf vh.tar vh_part1.c vh_part2.c vh_part3.c vh_part4.c vh_sample_run15.txt uuencode vh.tar vh.tar > proj1 mail... (2 Replies)
Discussion started by: venush
2 Replies

4. HP-UX

Sending Unix files as attachments in an email

Hi, I am executing the following command in order to send a file as an attachment: mailx -s "Subject" emailID@xyz.com < Testfile.txt Instead of attaching the file Testfile.txt, it is writing the contents of the file in the email message body. Please advise on how I can send the file as an... (7 Replies)
Discussion started by: sangharsh
7 Replies

5. UNIX for Dummies Questions & Answers

Sending email with attachment and body

Hi I want to able to attach a file to a email and send it with a body the body of the email is within the "body" file, and the attachment in "atch" if i send like below it will send the email correctly /usr/sbin/sendmail me@you.com< body And when i send the attachment alone... (3 Replies)
Discussion started by: sridanu
3 Replies

6. UNIX for Advanced & Expert Users

Email with multiple attachments & HTML body

I have a html file: # cat sample.html <html> <body> Sample HTML file</p> </body> </html> And I have two excel sheets (sheet1.xls & sheet2.xls) I want to send an email by having the sample.html as the message body and two spreadsheets as the attachments. I tried using the below command:... (12 Replies)
Discussion started by: BHM
12 Replies

7. Shell Programming and Scripting

Mailx sending attachments to personal email, but not SharePoint?

Hello! I am writing a KornShell script that (in addition to other things) sends a file from a Unix directory to a SharePoint directory. However when executing the script there is no sign of the file on the SharePoint. I have tested the script using my personal email as the destination and the... (3 Replies)
Discussion started by: mattkoz
3 Replies

8. Shell Programming and Scripting

Sending attachment with email without using uuencode and mutt

Hi All, do we have any option for sending attachment with email except using uuencode and mutt, because if i use these utilities then i will have to install them separately which is not feasible at time. please suggest on this. (2 Replies)
Discussion started by: lovelysethii
2 Replies

9. Shell Programming and Scripting

Message Body while sending an email

I am making use of the following code to display the results of my txt file in an email: mail -s 'Count Validation Test Comparison Results' Ronit@XYZ.com < Count_Validation_Results_`date +%m%d%Y`.txt Email Output: ----------Query 1 Count Validation Results-------- Source count is 4 Target... (7 Replies)
Discussion started by: ronitreddy
7 Replies

10. Red Hat

Sending email with message body and attachment

Hello experts!! I am trying to send an email with message body and attachment.but i am getting any one like message body or attachment. I tried below command: (echo "subject:test";echo "MIME-Version: 1.0";echo "content-transfer-encoding:base 64";echo "content-type:txt;name=test.txt";cat... (2 Replies)
Discussion started by: Devipriya Ch
2 Replies
devmap_do_ctxmgt(9F)					   Kernel Functions for Drivers 				      devmap_do_ctxmgt(9F)

NAME
devmap_do_ctxmgt - perform device context switching on a mapping SYNOPSIS
#include <sys/ddi.h> #include <sys/sunddi.h> int devmap_do_ctxmgt(devmap_cookie_t dhp, void *pvtp, offset_t off, size_t len, uint_t type, uint_t rw, int (*devmap_con- textmgt)(devmap_cookie_t, void *, offset_t, size_t, uint_t, uint_t)); INTERFACE LEVEL
Solaris DDI specific (Solaris DDI). PARAMETERS
dhp An opaque mapping handle that the system uses to describe the mapping. pvtp Driver private mapping data. off User offset within the logical device memory at which the access begins. len Length (in bytes) of the memory being accessed. devmap_contextmgt The address of driver function that the system will call to perform context switching on a mapping. See devmap_con- textmgt(9E) for details. type Type of access operation. Provided by devmap_access(9E). Should not be modified. rw Direction of access. Provided by devmap_access(9E). Should not be modified. DESCRIPTION
Device drivers call devmap_do_ctxmgt() in the devmap_access(9E) entry point to perform device context switching on a mapping. devmap_do_ctxmgt() passes a pointer to a driver supplied callback function, devmap_contextmgt(9E), to the system that will perform the actual device context switching. If devmap_contextmgt(9E) is not a valid driver callback function, the system will fail the memory access operation which will result in a SIGSEGV or SIGBUS signal being delivered to the process. devmap_do_ctxmgt() performs context switching on the mapping object identified by dhp and pvtp in the range specified by off and len. The arguments dhp, pvtp, type, and rw are provided by the devmap_access(9E) entry point and must not be modified. The range from off to off+len must support context switching. The system will pass through dhp, pvtp, off, len, type, and rw to devmap_contextmgt(9E) in order to perform the actual device context switching. The return value from devmap_contextmgt(9E) will be returned directly to devmap_do_ctxmgt(). RETURN VALUES
0 Successful completion. Non-zero An error occurred. CONTEXT
devmap_do_ctxmgt() must be called from the driver's devmap_access(9E) entry point. EXAMPLES
Example 1: Using devmap_do_ctxmgt in the devmap_access entry point. The following shows an example of using devmap_do_ctxmgt() in the devmap_access(9E) entry point. ... #define OFF_DO_CTXMGT 0x40000000 #define OFF_NORMAL 0x40100000 #define CTXMGT_SIZE 0x100000 #define NORMAL_SIZE 0x100000 /* * Driver devmap_contextmgt(9E) callback function. */ static int xx_context_mgt(devmap_cookie_t dhp, void *pvtp, offset_t offset, size_t length, uint_t type, uint_t rw) { ...... /* * see devmap_contextmgt(9E) for an example */ } /* * Driver devmap_access(9E) entry point */ static int xxdevmap_access(devmap_cookie_t dhp, void *pvtp, offset_t off, size_t len, uint_t type, uint_t rw) { offset_t diff; int err; /* * check if off is within the range that supports * context management. */ if ((diff = off - OFF_DO_CTXMG) >= 0 && diff < CTXMGT_SIZE) { /* * calculates the length for context switching */ if ((len + off) > (OFF_DO_CTXMGT + CTXMGT_SIZE)) return (-1); /* * perform context switching */ err = devmap_do_ctxmgt(dhp, pvtp, off, len, type, rw, xx_context_mgt); /* * check if off is within the range that does normal * memory mapping. */ } else if ((diff = off - OFF_NORMAL) >= 0 && diff < NORMAL_SIZE) { if ((len + off) > (OFF_NORMAL + NORMAL_SIZE)) return (-1); err = devmap_default_access(dhp, pvtp, off, len, type, rw); } else return (-1); return (err); } SEE ALSO
devmap_access(9E), devmap_contextmgt(9E), devmap_default_access(9F) Writing Device Drivers SunOS 5.10 22 Jan 1997 devmap_do_ctxmgt(9F)
All times are GMT -4. The time now is 07:03 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy