Hi,
I want to know how to send a mail in unix using mailx or mail or sendmail to send a mail with a file attached. I have read the answers from the other threads but I still don't understand. I want to do it in the command line as well as in script.
Can anyone help? DO I need to use... (1 Reply)
In shell script how can I attach a file and send a mail.
suppose if I written like the following way
usr/bin/mail 'subject" "mail_id" < file.
a mail goes to the mail-id with the content of file.But I want the file to be atttached to the mail.How can I get it.is there any way for this.
... (9 Replies)
How to attach a file in Linux mail command
Hi Guys,
Is there any way to attach a file in Linux mail command without using "uuencode"?
i.e.
Code:
file=/a/b/c/d/file.txtmail -s "Giga aks" abc@123.com <<HDoc`uuencode $file $file 2>/dev/null`HDoc
Here, I don;t want to use 'uuencode'... (1 Reply)
Hello.
I need to send mails from hp-ux with 2 attachments: a text file and an excel file. So I'm composing a mime file which I will pipe to sendmail utility.
This works fine if the only attachment is the text file (i use cat command to attach text content). But I have problems with the format... (3 Replies)
Hello,
I have a .dat file containing one line. I need a script to read that line and make it part of the body and send a mail... Let's say the line is $line. I need the script to send a mail with the body "The last disposal feed is $line".
Thanks (4 Replies)
Hi,
My script has to send 2 files as a separate attachment(Note : files to be sent without zipping) to the specified email id.
Below code was used but it is not attaching the file as expected instead the file contents are displayed in the body of the email.
Kindly,help with your... (22 Replies)
Hi,
i want color effect on mail as well as multiple attachment.I have code but this code is used for single attachment. I am unable to attach more than one file.:wall:
I want to send two attachments -ahmed.csv and ahmed1.csv .
Sample content:
<html>
<body>
<b> Hi...</b>
</body>
</html>
... (1 Reply)
Hi Experts,
i need your help here
:confused:
Need to send a report thru mail using unix shell script(AIX). can you help me to do this? . i tried "uuencode" with CSV format, but while reading report all values are in single column. i need each column values in separate cell.
Thanks in... (9 Replies)
Hi Guys,
May i know how to attach a document using sendmail command in Linux platform.... :confused: (2 Replies)
Discussion started by: Santosh101
2 Replies
LEARN ABOUT FREEBSD
fscanf_l
SCANF_L(3) BSD Library Functions Manual SCANF_L(3)NAME
scanf_l, fscanf_l, sscanf_l, vfscanf_l, vscanf_l, vsscanf_l -- input format conversion
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <stdio.h>
#include <xlocale.h>
int
scanf_l(locale_t loc, const char * restrict format, ...);
int
fscanf_l(FILE * restrict stream, locale_t loc, const char * restrict format, ...);
int
sscanf_l(const char * restrict str, locale_t loc, const char * restrict format, ...);
int
vfscanf_l(FILE * restrict stream, locale_t loc, const char * restrict format, va_list ap);
int
vscanf_l(locale_t loc, const char * restrict format, va_list ap);
int
vsscanf_l(const char * restrict str, locale_t loc, const char * restrict format, va_list ap);
DESCRIPTION
The above functions scan input according to a specified format in the locale loc. They behave in the same way as the versions without the _l
suffix, but use the specific locale rather than the global or per-thread locale. See the specific manual pages for more information.
SEE ALSO scanf(3), xlocale(3)STANDARDS
These functions do not conform to any specific standard so they should be considered as non-portable local extensions.
HISTORY
These functions first appeared in Darwin and were first implemented in FreeBSD 9.1.
BSD April 8, 2012 BSD