Sponsored Content
Full Discussion: mail filter
Top Forums Shell Programming and Scripting mail filter Post 13850 by Kelam_Magnus on Thursday 24th of January 2002 10:04:33 AM
Old 01-24-2002
I have a file in the /tmp directory called /tmp/test.tmp

I mail this file to a user who is aliased in the /etc/aliases file.
tm6858 :"|/root/urgent.sh"

This file is owned by root...
-rwxr-xr-x 1 root sys 196 Jan 24 08:28 urgent.sh


I have this script process the file and forward it to root if it is "urgent" or if not it just sends the file to the user.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

mail problem (NOT Mail or Mail.app)

When I try to use the CLI mail, I get the following error. What's wrong? Welcome to Darwin! % mail root Subject: test test . EOT % /etc/mail/sendmail.cf: line 81: fileclass: cannot open /etc/mail/local-host-names: Group writable directory Do I just need to change the... (1 Reply)
Discussion started by: chenly
1 Replies

2. UNIX for Advanced & Expert Users

Mail Filter

hai friends. How can i filter the incoming mails to an individual folder.. I am using sendmail. Thanks in advance Collins (4 Replies)
Discussion started by: collins
4 Replies

3. Solaris

how to forward mail in /var/mail/username to external mail

Dear All, Now I use solaris 10 and I try to forward mail from /var/mail/username to their external mail so what should I do? thank u in advance (2 Replies)
Discussion started by: unitipon
2 Replies

4. UNIX for Dummies Questions & Answers

How to send html file in a mail not as an attachment but it should display in the mail in table for

Hi The below script working when we are sending the html as attachment can u please guide how to send thesmae data in table form direct in the mail and not in mail attachment . cat Employee.sql SET VERIFY OFF SET PAGESIZE 200 SET MARKUP HTML ON SPOOL ON PREFORMAT OFF ENTMAP ON - HEAD... (0 Replies)
Discussion started by: mani_isha
0 Replies

5. UNIX for Advanced & Expert Users

need to configure mail setting to send mail to outlook mail server

i have sun machines having solaris 9 & 10 OS . Now i need to send mail from the machines to my outlook account . I have the ip adress of OUTLOOK mail server. Now what are the setting i need to do in solaris machines so that i can use mailx or sendmail. actually i am trying to automate the high... (2 Replies)
Discussion started by: amitranjansahu
2 Replies

6. OS X (Apple)

Why are the subjects of deleted mail messages still in Mail Viewing pane?

I was wondering -- when I delete a mail message, I know it goes into the trash, but I've noticed that the subject lines of messages are still in the viewing pane, and I have to delete them as well. Can anyone tell me why this is, and where they are? (1 Reply)
Discussion started by: Straitsfan
1 Replies

7. Linux

awk filter & Auto gen Mail

hi experts 2012-01-30 10:30:01:812 "y" "NA" "30/01/2012 10:30:01:154 AM" 2012-01-30 10:33:46:342 "y" "NA" "30/01/2012 10:33:45:752 AM" 2012-01-30 10:41:11:148 "n" "200" "30/01/2012 10:41:10:558 AM" 2012-01-30 10:44:48:049 "y" "NA" ... (7 Replies)
Discussion started by: nith_anandan
7 Replies

8. UNIX for Dummies Questions & Answers

Filter records in a huge text file from a filter text file

Hi Folks, I have a text file with lots of rows with duplicates in the first column, i want to filter out records based on filter columns in a different filter text file. bash scripting is what i need. Data.txt Name OrderID Quantity Sam 123 300 Jay 342 498 Kev 78 2500 Sam 420 50 Vic 10... (3 Replies)
Discussion started by: tech_frk
3 Replies

9. UNIX for Advanced & Expert Users

Client was not authenticated to send anonymous mail during MAIL FROM (in reply to MAIL FROM comm

I am having trouble getting mail to work on a red hat server. At first I was getting this message. Diagnostic-Code: X-Postfix; delivery temporarily suspended: connect to :25: Connection refused Then added the port to my firewall. Then I temporarily turned off selinux. I then copied this file... (1 Reply)
Discussion started by: cokedude
1 Replies
t_look(3)						     Library Functions Manual							 t_look(3)

NAME
t_look() - look at the current event on a transport endpoint SYNOPSIS
DESCRIPTION
The function returns the current event on the transport endpoint specified by fd. This function enables a transport provider to notify a transport user of an asynchronous event when the user is calling functions in synchronous mode. Certain events require immediate notifica- tion of the user and are indicated by a specific error, [TLOOK], on the current or next function to be executed. This function also enables a transport user to poll a transport endpoint periodically for asynchronous events. Valid States All - apart from XTI Internet Protocol-specific Information As soon as a segment with the TCP urgent pointer set enters the TCP receive buffer, the event is indicated. remains set until all data up to the byte pointed to by the TCP urgent pointer has been received. If the urgent pointer is updated, and the user has not yet received the byte previously pointed to by the urgent pointer, the update is transparent to the user. Fork Safety is not fork-safe. RETURN VALUE
Upon success, returns a value that indicates which of the following allowable events has occurred, or returns zero if no event exists. One of the following events is returned: T_LISTEN connection indication received. T_CONNECT connect confirmation received. T_DATA normal data received. T_ERROR (TLI ONLY) fatal error occurred. T_EXDATA expedited data received. T_DISCONNECT disconnect received. T_UDERR datagram error indication. T_ORDREL orderly release indication. T_GODATA (XTI only) flow control restrictions on normal data flow have been lifted. Normal data may be sent again. T_GOEXDATA (XTI only) flow control restrictions on expedited data flow have been lifted. Expedited data may be sent again. ERRORS
On failure, is set to one of the following: [TBADF] The specified identifier does not refer to a transport endpoint. [TSYSERR] A system error has occurred during execution of this function. [TPROTO] (XTI only) This error indicates that a communication problem has been detected between XTI and the transport provider for which there is no suitable XTI ( SEE ALSO
t_open(3), t_snd(3), t_sndudata(3), thread_safety(5). STANDARDS CONFORMANCE
t_look(3)
All times are GMT -4. The time now is 01:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy