02-14-2011
Thanks .. I could able to do it.. So much of good information .. keep sharing..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
encoding type for images? (5 Replies)
Discussion started by: biswasbaishali
5 Replies
2. Red Hat
Hi there..
I need a proper "mutt" command to send a mail with html body and html attachment at a time.
Also if possible let me know the other commands to do this task.
Please help me.. (2 Replies)
Discussion started by: vickramshetty
2 Replies
3. Shell Programming and Scripting
Hello ,
I am trying to send an email with two attachments . I have tried all previous suggestion in this forum but none worked. I could send one attachment in an email by
uuencode $file "$file" | mailx -m -s "File" xxx@xx.com
but unable to send multiple attachments .
I have tried
... (8 Replies)
Discussion started by: RaviTej
8 Replies
4. UNIX for Advanced & Expert Users
Hi all:
Been racking my brain on this for the last couple of days and what has been most frustrating is that this is the last piece I need to complete a project.
There are numerous posts discussing mutt in this forum and others but I have been unable to find similar issues.
Running with... (1 Reply)
Discussion started by: raggmopp
1 Replies
5. Shell Programming and Scripting
Hi,
Im having a bit of an issue with using the uuencode command and sending out an email.
My aim is to send an email out which has a body and also have attachments. Currently I can either get one or the other and not both on the same email.
uuencode... (4 Replies)
Discussion started by: 02JayJay02
4 Replies
6. Shell Programming and Scripting
Hi All,
I am trying to send the contents of a file as email body. I am using html email and sendmail option of unix. I am using the below piece of code for the same :
#!/usr/bin/ksh
export MAILTO="email@domain.com"
export SUBJECT="Report"
export BODY="file_directory_path/test_file.txt"... (1 Reply)
Discussion started by: rockygsd
1 Replies
7. Shell Programming and Scripting
Hi ,
I have a sql query in the unix script ,whose output is shown below.I want to convert this output to HTML table format & send email from unix with this table as email body.
p_id src_system amount
1 A 100
2 B 200
3 C ... (3 Replies)
Discussion started by: jagadeeshn04
3 Replies
8. Shell Programming and Scripting
I am using Sun Solaris ver. 5.10 and trying to send an HTML table in email body using mail command in C shell script.
I tried following commands:-
#1
mail -m "MIME-Version: 1.0;Content-type:text/html;charset=UTF-8" receiver@mail.com < file.html #2
mail -m "Content-type: text/html;" -s "This... (4 Replies)
Discussion started by: jnrohit2k
4 Replies
9. Shell Programming and Scripting
Hello All,
I have a query here. I am sending an HTML table(which I am creating it by a call to REST API, in a LINUX box) and from there I have to send it into an email. So following are the poins on same:
As data is not static so it is writing Dynamic data and creating HTML file.
There is... (9 Replies)
Discussion started by: RavinderSingh13
9 Replies
10. HP-UX
HP-UX mbhp7640 B.11.31 U ia64 4294967295 unlimited-user license
Our database builds a MIME compliant html email, then cats that to sendmail - no problem.
Due to horrible issues with the native uuencode, we long ago began using uuenview to encode our attachments - no problem. An example is... (1 Reply)
Discussion started by: bubba77
1 Replies
LEARN ABOUT CENTOS
parport_register_device
PARPORT_REGISTER_DEV(9) Parallel Port Devices PARPORT_REGISTER_DEV(9)
NAME
parport_register_device - register a device on a parallel port
SYNOPSIS
struct pardevice * parport_register_device(struct parport * port, const char * name, int (*pf) (void *), void (*kf) (void *),
void (*irq_func) (void *), int flags, void * handle);
ARGUMENTS
port
port to which the device is attached
name
a name to refer to the device
pf
preemption callback
kf
kick callback (wake-up)
irq_func
interrupt handler
flags
registration flags
handle
data for callback functions
DESCRIPTION
This function, called by parallel port device drivers, declares that a device is connected to a port, and tells the system all it needs to
know.
The name is allocated by the caller and must not be deallocated until the caller calls parport_unregister_device for that device.
The preemption callback function, pf, is called when this device driver has claimed access to the port but another device driver wants to
use it. It is given handle as its parameter, and should return zero if it is willing for the system to release the port to another driver
on its behalf. If it wants to keep control of the port it should return non-zero, and no action will be taken. It is good manners for the
driver to try to release the port at the earliest opportunity after its preemption callback rejects a preemption attempt. Note that if a
preemption callback is happy for preemption to go ahead, there is no need to release the port; it is done automatically. This function may
not block, as it may be called from interrupt context. If the device driver does not support preemption, pf can be NULL.
The wake-up ("kick") callback function, kf, is called when the port is available to be claimed for exclusive access; that is, parport_claim
is guaranteed to succeed when called from inside the wake-up callback function. If the driver wants to claim the port it should do so;
otherwise, it need not take any action. This function may not block, as it may be called from interrupt context. If the device driver does
not want to be explicitly invited to claim the port in this way, kf can be NULL.
The interrupt handler, irq_func, is called when an interrupt arrives from the parallel port. Note that if a device driver wants to use
interrupts it should use parport_enable_irq, and can also check the irq member of the parport structure representing the port.
The parallel port (lowlevel) driver is the one that has called request_irq and whose interrupt handler is called first. This handler does
whatever needs to be done to the hardware to acknowledge the interrupt (for PC-style ports there is nothing special to be done). It then
tells the IEEE 1284 code about the interrupt, which may involve reacting to an IEEE 1284 event depending on the current IEEE 1284 phase.
After this, it calls irq_func. Needless to say, irq_func will be called from interrupt context, and may not block.
The PARPORT_DEV_EXCL flag is for preventing port sharing, and so should only be used when sharing the port with other device drivers is
impossible and would lead to incorrect behaviour. Use it sparingly! Normally, flags will be zero.
This function returns a pointer to a structure that represents the device on the port, or NULL if there is not enough memory to allocate
space for that structure.
COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 PARPORT_REGISTER_DEV(9)