Sponsored Content
Top Forums Shell Programming and Scripting how to send contents of a file to email as a message Post 302149753 by ali560045 on Friday 7th of December 2007 07:53:31 AM
Old 12-07-2007
thanks now i m getting the message but after that i have written some messages
-------------------------------------------------------------

Hi,
This Attachment contains the list of all the Applications Running Currently on
mdcaedn03.tu.com

Thanks
Ali Naveed
-------------------------------------------------------------------------------
above one its not displaying, can u tell me the syntax
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Email message if file size > 0 bytes

I want to create a script that emails a file created by Informix Ace if the file size is > 0. It is a list of exceptions. No exceptions...no message This does not work: THESIZE=`ls -lA /tmp/ds_treo.txt | awk -F' ' '{print $5}'` if then (cat $DSDIR/ds_treo.txt) | mail -s "Treo... (1 Reply)
Discussion started by: poste_d_ordure
1 Replies

2. Shell Programming and Scripting

send a message through email to 5 people using unix script?

Hi All, I want to send a message through email to 5 people in unix script. Please let me know, how to do it.Please do reply it is urgent.How to do it?Please reply.thanks! Thanks, Mary. (2 Replies)
Discussion started by: MARY76
2 Replies

3. UNIX for Advanced & Expert Users

send a message through email to 5 people using unix script.

Hi All, I want to send a message through email to 5 people in unix script. Please let me know, how to do it.Please do reply it is urgent. Thanks, Mary. (3 Replies)
Discussion started by: MARY76
3 Replies

4. Shell Programming and Scripting

error-when trying to send the message thru email.

Hi All, I want to send a message through email. I have written below code. But it is not worling. Anybody has idea, why it is not working?. export $file1=$home1/pip1.$$ mailx -s "This Message from unix" abc@yahoo.com< $file1 thanks,Mary. (5 Replies)
Discussion started by: MARY76
5 Replies

5. Shell Programming and Scripting

Send-file /var/log/message

Hello All i need Shell Script to send /var/log/message or another if he have or grep this file to have some info like PID or value (e.g like NFS mount - stop ) to some body in my System Thanks for Advanced (2 Replies)
Discussion started by: Hosam
2 Replies

6. Shell Programming and Scripting

Problem with sending email(to include contents of text file)

Hello, I was using a shell script for sending contents of a text file(email.report) to different users. I was using the below command in my script to send email... cat email.report | /usr/bin/mailx -s $REQ_SUBJECT -h 5 abc@xyz.com It was working fine all these days but now all of a sudden it... (18 Replies)
Discussion started by: smarty86
18 Replies

7. Shell Programming and Scripting

Script to send email after comparing the folder permissions to a certain permission & send email

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

8. Cybersecurity

How can you send a file over Ip.NOT EMAIL

So I was just wondering... Is there a way to send a file directly to the computer..... Ive never gotten the answer and I want to know how, I keep running in to a wall :wall:. Why you may ask, well really for security reasons due to the fact that if this is done via a port I want to make sure to... (3 Replies)
Discussion started by: orszhak
3 Replies

9. Shell Programming and Scripting

Capture all error message in Log file and send the Log file by email

Hi I have a requirement to write a script to capture all errors in a Logfile and send the file in email. If there is any error occurred the subject of email will be ERROR , If there are no error occurred the subject of email will be SUCCESS. So I created a Log file and put the Appropriate... (2 Replies)
Discussion started by: dgmm
2 Replies
DtSearchMessages(library call)											    DtSearchMessages(library call)

NAME
DtSearchMessages -- Access and manipulate messages on the DtSearch MessageList SYNOPSIS
#include <Dt/Search.h> int DtSearchHasMessages( , void DtSearchAddMessage( const char *msg, char *DtSearchGetMessages( , void DtSearchFreeMessages( ); DESCRIPTION
The DtSearch online search engine may assemble detailed user messages to explain various errors and failures. These messages are designed to provide a user with enough information to correct the error. Often more than one message is assembled onto the MessageList as the result of a single API call. The calling code may also append messages to the MessageList prior to display to the user. All messages remain on the MessageList and new messages are appended to the preexisting list until the list is specifically freed by the calling code. DtSearchHasMessages returns zero if the MessageList is empty, and returns nonzero if there are any information or error messages currently on the MessageList. DtSearchAddMessage appends a message to the end of the MessageList. A message is defined as a zero-terminated C string. DtSearchGetMessages returns a static text buffer containing all current messages on the MessageList. The messages are returned as a single flat, zero-terminated C string, with two ASCII linefeed characters between messages (giving the appearance of a blank line between mes- sages). It is expected that the calling code will display the text in a message dialog box or its equivalent. The returned buffer address is valid until the next call. If the MessageList is currently empty, this function returns a pointer to an empty string. DtSearchFreeMessages clears all messages on the MessageList. It is usually called after the user has dismissed a dialog box displaying the current messages. SEE ALSO
DtSrAPI(3) DtSearchMessages(library call)
All times are GMT -4. The time now is 10:39 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy