10-02-2007
mailx output format in outlook
We have a deamon monitoring script on Solaris 10 - uname -a gives:
SunOS be2900 5.10 Generic_118833-33 sun4u sparc SUNW,Netra-T12
Thes script is:
#!/usr/bin/ksh
if [ ! -z "$(ps -efZ | grep global | grep urouter | grep appname)" ]
then
# Create message body
echo "To:a.nother@company.co.uk\n" > /tmp/appmon.$$
echo "Subject: The APP UROUTER has gone down!\n" >> /tmp/appmon.$$
echo "`date`\n" >> /tmp/appmon.$$
echo "check the system and restart it.\n" >> /tmp/appmon.$$
echo " \n" >> /tmp/appmon.$$
echo "Log in as root\n" >> /tmp/appmon.$$
echo " \n" >> /tmp/appmon.$$
echo "urctrl -start\n" >> /tmp/appmon.$$
echo "trservice appname PE START $APP_HOME\n" >> /tmp/appmon.$$
echo "trservice appname WF START $APP_HOME\n" >> /tmp/appmon.$$
echo "trservice appname BP START $APP_HOME\n" >> /tmp/appmon.$$
(echo `cat /tmp/appmon.$$`)|/usr/bin/mailx -s "Warning - please ignore this is a test" "a.nother@company.co.uk"
# Delete temp file for message body
# cat /tmp/appmon.$$
rm /tmp/appmon.$$ > /dev/null
fi
#EOF
The script sends the email correctly, but the body of the email, the result of all the echo commands appears in ms outlook as a single line.
How can I format the output of mailx so that output when viewed in ms outlook is correct?
TIA,
Jabberwocky
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I like to use mailx -s to send an entire xxxxx.log to my outlook e-mail account.
Any help will be appreciated.
Thanks. (6 Replies)
Discussion started by: simt
6 Replies
2. 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
3. UNIX for Advanced & Expert Users
I use maix command to sent mails.
i can sent only plain text mails.
Unable to sent mails in html format.
while sending mails in html format, the received mail has the html code only. (17 Replies)
Discussion started by: p_prathaban
17 Replies
4. Shell Programming and Scripting
I have to send a couple of rows that have been returned from a SQL query. I have written the output of the query to a file and while i try to print this in the mail body the formatting goes wrong.
Intended Output in mail body:
Col1 Col2 Col3
------ ... (2 Replies)
Discussion started by: qwertyu
2 Replies
5. Shell Programming and Scripting
Hello All,
I been trying to get a solution for a while not able to figure out. I am generating a file and sending that as an body of message to my outlook account. For some reason reason everything is showing up as one line in the email.
for i in `cat "${GEN_PARAM_LIST3}"`
do
... (0 Replies)
Discussion started by: Ariean
0 Replies
6. Shell Programming and Scripting
When i execute the below shell script with 2 different Input files, for one of the data files (datafile1) my email message body in the outlook messes up and every thing comes up in one line. May i please know what i am doing wrong here or how to fix this? The only difference in data files is one is... (1 Reply)
Discussion started by: Ariean
1 Replies
7. Shell Programming and Scripting
Hi
I have a script running in lunix machine which emails log file content to my outlook.
Here is the actual log file result:
Image-1
In-Master:25028
ReplicaDn Consumer Supplier Delay
dc=xxx,dc=com lmjker0110:12345 ... (4 Replies)
Discussion started by: buzzme
4 Replies
8. Shell Programming and Scripting
Hi,
I prepare one backup report which drop mail with backup report.
Same report looks different in outlook 2013.
e.g : In outlook 2013 ( its a dummy example only ) :
Server Instance Database Backup Time Status
------------------- --------- --------- -------------- ----------------------... (5 Replies)
Discussion started by: niteshtheone
5 Replies
9. Shell Programming and Scripting
I have a ksh script that emails a report to outlook from a Unix Solaris. On server the report formatted perfectly. However, the email version the format is not.
On the server report looks like this:
TN Region Old SPiAD Server Order/Req Local Status NAAC Status Request Date New... (1 Reply)
Discussion started by: mrn6430
1 Replies
LEARN ABOUT OPENSOLARIS
ctsmc
ctsmc(7D) Devices ctsmc(7D)
NAME
ctsmc - System Management Controller driver
DESCRIPTION
The ctsmc system management controller driver is a multithreaded, loadable, clonable STREAMS hardware driver that supports communication
with the system management controller device on SUNW,NetraCT-410, SUNW,NetraCT-810 and SUNW,Netra-CP2300 platforms.
The smc device provides a Keyboard Controller Style (KCS) interface as described in the Intelligent Platform Management Interface (IPMI)
Version 1.5 specification. The ctsmc driver enables user-land and kernel-land clients to access services provided by smc hardware.
FILES
/dev/ctsmc
ctsmc special character device
/platform/sun4u/kernel/drv/sparcv9/ctsmc
64 bit ELF kernel driver
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Architecture |SPARC |
+-----------------------------+-----------------------------+
|Availability |SUNWcar.u |
+-----------------------------+-----------------------------+
SEE ALSO
attributes(5)
STREAMS Programmers Guide
Writing Device Drivers
Intelligent Platform Management Interface (IPMI). Version 1.5 - PICMIG, February, 2001
SunOS 5.11 7 Dec 2003 ctsmc(7D)