Sponsored Content
Full Discussion: Send attachment in Linux
Top Forums Shell Programming and Scripting Send attachment in Linux Post 302263964 by Ikon on Tuesday 2nd of December 2008 08:32:29 PM
Old 12-02-2008
there are dozens of threads covering this, use the search, there are many different ways to do it.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Send an attachment with metasend

Hi, How to send an attachment of which the name contains the space. Following is the command I tried. metasend -b -s "test subject" -F "test@yahoo.com" -t "test@test.com" -f "test.txt" -m "text/plain" -n -f "test 123.txt" -m "application/xls" If the file name contains no space,... (0 Replies)
Discussion started by: egckhad
0 Replies

2. UNIX for Advanced & Expert Users

send attachment without uuencode

Hello - In unix, can you tell me IF there is a way to send attachments via email without using uuencode command? Thank you (3 Replies)
Discussion started by: panchpan
3 Replies

3. Shell Programming and Scripting

How to send a attachment

Hi, I want to send a attachment using mailx command and also i want to include body of the mail which is stored in a text file.:confused: uuencode att.txt att.txt |mailx -s "attachment" adc@mail.com < text.txt I tried this command, but it is not working fine. It is showing the body but it is... (2 Replies)
Discussion started by: lathish
2 Replies

4. Shell Programming and Scripting

How to send a mail with attachment?

Hi, I usually write a file TEST.MAIL like this to send mails: Importance: High Priority: Urgent X-Priority: 1 (Highest) From: user Subject: error ... text body .... and then I launch it (or writre a c-chell that launchs it) by writing: mail a@b.com < /users/.../TEST.MAIL How can... (4 Replies)
Discussion started by: albaalbetti
4 Replies

5. UNIX for Dummies Questions & Answers

How to send email attachment as read only in Linux

Hi, Could anyone help me to find soultion for the issue to send email attachment as read only. I can change the file permission in Linux and can send the email attachment from Linux. But my requirment is user can read the attachment but should not modified it . even user save the attachment... (4 Replies)
Discussion started by: calagar
4 Replies

6. Shell Programming and Scripting

How to send attachment without using uuencode

H All I want to send attachment in mail but I dont have uuencode installed in AIX server, there is any alternative way to send attachment in mail. (2 Replies)
Discussion started by: ns64110
2 Replies

7. Shell Programming and Scripting

Send mail using attachment

Hi All, I need to send mail with attachment. I am using uuencode but it seems it is sending encoded file. I am getting the mail with attachment but there is no data even the file size is almost 90KB. Please help. Thanks. (3 Replies)
Discussion started by: unankix
3 Replies

8. Shell Programming and Scripting

Send mail as attachment

Hi All, I am trying to send mail via unix and attaching file along with that mail, but facing issue while sending. I have tried below commands- 1)- uuencode $prmDirOutput/report_mailbody $prmDirOutput/report_mailbody | mailx -s "Acknowledgment file- $subject" $email_id 2)- mutt -a... (4 Replies)
Discussion started by: Amit786
4 Replies

9. Shell Programming and Scripting

Not able to send attachment with the email

Hi All, The below code is working fine for me. mailx -s hello abc@xyz.com <<EOT Hello !!! How are you? Regards Rahul EOT But i am not able to send csv file with the mail .Getting just themail but not the attachment. uuencode /path/s1.csv | mailx -s hello abc@xyz.com <<EOT... (9 Replies)
Discussion started by: rafa_fed2
9 Replies
LAYER(2)							System Calls Manual							  LAYER(2)

NAME
lalloc, lfree, ltofront, ltoback, lcstring - graphics layers SYNOPSIS
#include <u.h> #include <libc.h> #include <libg.h> #include <layer.h> Layer* lalloc(Cover *c, Rectangle r) void lfree(Layer *l) void ltofront(Layer *l) void ltoback(Layer *l) void lcstring(Bitmap *b, int height, uchar *widths, uchar *msg, int n) DESCRIPTION
The layer library extends the functionality of the bitmap graphics library (see graphics(2)) to overlapping independent rectangular win- dows, or layers, on a single bitmap, typically the screen. The entry points bitblt, point, segment, string, subfontstring, and texture are overloaded in the layer library to apply these routines equally to bitmaps and layers. Other than lcstring, which is rarely needed, there are no special entry points for drawing on layers. The data structures associated with the main type, Layer, are defined in <layer.h>: typedef struct Layer Layer; typedef struct Cover Cover; typedef enum Lvis { Visible, Obscured, Invisible, }Lvis; struct Layer { Bitmap; /* Bitmap.cache!=0 ==> layer */ Layer *next; /* next layer from front to back */ Cover *cover; /* layer etc. that derived this one */ int user; /* a place for the user to stick stuff */ Lvis vis; /* visibility state */ }; struct Cover { Layer *layer; /* layer on which these are painted */ Layer *front; /* first sublayer */ Bitmap *ground; /* background texture */ }; Layers and Bitmaps are distinguished by the cache element of their structures: cache is non-zero in a Layer. The layer library's versions of the graphics routines listed above use cache to decide how to implement their operations. These functions operate on type Bitmap* but because Bitmap is included in Layer, the C compiler will permit passing a Layer to these routines. The routines promote the type to Layer* if they see cache is non-zero. (Note that these actions apply only in the layer library; although cache is defined in Bitmaps, the stan- dard graphics library does not support layers.) Lalloc allocates a new Layer to occupy Rectangle r in a Bitmap. The argument Cover c connects the set of Layers to a covering Bitmap. Before the first call to lalloc, c should be allocated and initialized so c->layer is the Bitmap on which the Layers will be drawn, c->front is zero, c->ground is a background texture to fill the interstices between Layers, and c->layer is textured with c->ground. It is legal for c->layer itself to be a Layer for recursive layering. The rectangle r may have arbitrary overlap, including none, with c->layer->r. After calling lalloc, the new Layer is fully visible (as far as geometry permits) on the covering Bitmap and is cleared to all zeros. Lfree frees the Layer l and restores the contents of its covering Bitmap. Ltofront makes l fully visible within its covering Bitmap. Ltoback pushes l behind any other Layers on the same covering Bitmap. Neither function changes the x-y location of the Layer. Lcstring is peculiar to programs, such as 81/2(1), that multiplex client access to the display. It acts as a feed-through for the 's' mes- sage generated by string (see bit(3)). B is the bitmap (or layer) and height is the height of the font in which the string is to be drawn. Widths is an array of character widths, indexed by font cache position. Msg is a pointer to the string message; it contains the header and n cache indices. SOURCE
/sys/src/liblayer SEE ALSO
graphics(2), bitblt(2), cachechars(2), bit(3) LAYER(2)
All times are GMT -4. The time now is 02:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy