12-23-2008
Hi,
You can append all the output into one file and then send it with
cat /tmp/resultfile | mail -s "$SUBJECT" $EMAILID
and then remove it afterwards.
/Lakris
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi
A) I am able to send eMail using mailx from a UNIX ( solaris 8 ) host to my Outlook-email-ID : FName.Surname@Citigroup.com ( This is NOT my actual -eMail-ID). But in Outlook the "From :" eMail address is displayed as
" usr1@unix-host1.unregistered.email.citicorp.com " .i.e the words... (2 Replies)
Discussion started by: Vetrivela
2 Replies
2. Programming
I have SQL giving me output of disabled ids in the system every day.
I can send on email for this disabled user list.
But I want to send one email for every disabled user or for every row.
thank you for your help.
Kyle (2 Replies)
Discussion started by: s1a2m3
2 Replies
3. Shell Programming and Scripting
Hi All,
I'm trying to send some file which generated by script to my email. when I run the script I'm getting an email. Thats fine. But it seems to be all messed up like below
Memory Status on ServerA: Mem: 3867444k total, 862680k used, 3004764k free, 54456k buffers!! CPU Status on ServerA:... (4 Replies)
Discussion started by: s_linux
4 Replies
4. Shell Programming and Scripting
Hello ,
I am trying to write a unix shell script to compare folder permission to say drwxr-x-wx and then send an email to my id in case the folders don't have the drwxr-x-wx permissions set for them .
I have been trying to come up with a script for few days now , pls help me:( (2 Replies)
Discussion started by: nairshar
2 Replies
5. Shell Programming and Scripting
Hi i created a cron job which invoke a shell script and output some content via email.
Some times these output are sent to the junk email folder. i want these mails to be sent to inbox with some specific font. what i have to do? (4 Replies)
Discussion started by: vidhyaS
4 Replies
6. Shell Programming and Scripting
Hello Unix Experts!
We are on AIX 6.1 TL6
I am trying to develop a script that does the following:
It should send the output of "df -g /directory/folder" command as an email to a user(someone@company.com)
This is too simple and i can research on how to do it, but it would be great if... (2 Replies)
Discussion started by: atechcorp
2 Replies
7. Shell Programming and Scripting
hello
can anyone debug these lines
cd /usr/local/scripts
./build update
./build versions | grep available
if
then
mail -s "update for server `hostname`" $EMAIL
else
echo -e "$YELLOW No update $RESET"
fi
echo "Please press a key - Back to main menu . . ." ; read
but... (3 Replies)
Discussion started by: nimafire
3 Replies
8. 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
9. Shell Programming and Scripting
Hi
I need help to do this. This is the output of qshape:
user$ qshape deferred|head
T 5 10 20 40 80 160 320 640 1280 1280+
TOTAL 0 0 0 0 0 0 0 0 0 0 0
T stands for minutes elapsed and TOTAL... (1 Reply)
Discussion started by: zorrox
1 Replies
10. Solaris
Hi how to send below prstat script output into table format and send through email?
prstat|awk '{ if ($9 >= 5) print $0 }' (17 Replies)
Discussion started by: tharmendran
17 Replies
LEARN ABOUT DEBIAN
mail.mailutils
MAIL.MAILUTILS(1) User Commands MAIL.MAILUTILS(1)
NAME
mail.mailutils - process mail messages
SYNOPSIS
mail.mailutils [OPTION...] [address...]
mail.mailutils [OPTION...] -f [OPTION...] [file]
mail.mailutils [OPTION...] --file [OPTION...] [file]
mail.mailutils [OPTION...] --file=file [OPTION...]
DESCRIPTION
GNU mail -- process mail messages. If -f or --file is given, mail operates on the mailbox named by the first argument, or the user's mbox,
if no argument given.
-a, --append=HEADER: VALUE append given header to the message being sent
-e, --exist
return true if mail exists
-E, --exec=COMMAND
execute COMMAND
-F, --byname
save messages according to sender
-H, --headers
write a header summary and exit
-i, --ignore
ignore interrupts
-n, --norc
do not read the system mailrc file
-N, --nosum
do not display initial header summary
-p, -r, --print, --read
print all mail to standard output
-q, --quit
cause interrupts to terminate program
-s, --subject=SUBJ
send a message with the given SUBJECT
-t, --to
precede message by a list of addresses
-u, --user=USER
operate on USER's mailbox
Common options
--config-file=FILE, --rcfile=FILE
load this configuration file
--config-help
show configuration file summary
--config-lint, --rcfile-lint
check configuration file syntax and exit
--config-verbose, --rcfile-verbose
verbosely log parsing of the configuration files
--no-site-config, --no-site-rcfile
do not load site configuration file
--no-user-config, --no-user-rcfile
do not load user configuration file
--set=PARAM=VALUE
set configuration parameter
--show-config-options
show compilation options
Global debugging settings
--debug-level=LEVEL
set Mailutils debugging level
--debug-line-info
show source info with debugging messages
-?, --help
give this help list
--usage
give a short usage message
-V, --version
print program version
Mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options.
REPORTING BUGS
Report bugs to <bug-mailutils@gnu.org>.
COPYRIGHT
Copyright (C) 2010 Free Software Foundation, inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
SEE ALSO
The complete GNU mailutils documentation is maintained as a Texinfo manual. If the mailutils-doc package is installed, the command
info mailutils
should give you access to the complete manual.
You can also find this manual online in the GNU mailutils webpage:
http://www.gnu.org/software/mailutils/manual/index.html.
Please note this manpage was automatically generated by the Debian mailutils packagers. Do not file bugs for its content to the GNU Mailu-
tils upstream authors.
FSF
June 2012 MAIL.MAILUTILS(1)