Sponsored Content
Top Forums UNIX for Advanced & Expert Users Group the records based on empno and send mail Post 302782535 by RudiC on Tuesday 19th of March 2013 05:07:08 AM
Old 03-19-2013
If I got your requirement right, you want to send one single mail only to each manager, containing all and only his projects. Try this:
Code:
$ sort -t'|' -k4 -k2,2 file | awk -F'|' '{print | "mail " $4}'

Not sure if you need e.g. a minus sign to make mail read stdin (the pipe).

I expect this to reopen the pipe whenever $4 is changing; if $4 stays the same, all lines should go into that single mail.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Based on num of records in file1 need to check records in file2 to set some condns

Hi All, I have two files say file1 and file2. I want to check the number of records in file1 and if its atleast 2 (i.e., 2 or greater than 2 ) then I have to check records in file2 .If records in file2 is atleast 1 (i.e. if its not empty ) i have to set some conditions . Could you pls... (3 Replies)
Discussion started by: mavesum
3 Replies

2. 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

3. Shell Programming and Scripting

how to write a shellscript to send a mail alert to the website user based on license expiration time

hi, i am very much new to shell scripting i have a requirement that i have to develop a License Renewal Alert system that has to give a alert mail to the users before 30days of user account expiration, by checking expiration date of the user with the data base, this system will... (0 Replies)
Discussion started by: deepu_Shscripts
0 Replies

4. 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

5. Shell Programming and Scripting

Send mail based on a group

Hello Gurus, I have a question. I have a file which has 2 columns and is tab separated and looks like below: FIELD1 FIELD2 Manual m456@hotmail.com Execution din098@gmail.com Artistic m456@hotmail.com Graphic din098@gmail.com FIELD2 values will have always either of the 2 above... (8 Replies)
Discussion started by: Max499
8 Replies

6. UNIX for Advanced & Expert Users

How can I send a mail from my outlook or other mail accounts to UNIX server?

Hi all, I want to send a mail for my business needs from outlook account to an unix server (HP-UX) but I don't send any mail. While I can send from the unix server to my outlook account, I can't send from outlook to unix. How can I achieve this ? How can I send a mail from my outlook or other... (2 Replies)
Discussion started by: igelegin
2 Replies

7. Ubuntu

Not able to send mail out of UbuntuBox in send mail

Hi Guys.. yesterday i purchased a VPS server and installed sendmail on ubuntu 12.4 with Webmin & Apache runing webserver problem is.. i can send mail via webmin user interface account to anybody to out side to any domain and able to recieve any mail from any domain.. Now main... (2 Replies)
Discussion started by: cmdman
2 Replies

8. UNIX for Beginners Questions & Answers

Read a file and send mail based on grep

Hi All, I am having a job and I need to send email when the job is running. On any other case (success,fail) I don't needed to send email. I check with BMC they told they dont have that in the version I am using. So I created a dependent job and grepped for the status and sent email. My... (1 Reply)
Discussion started by: arunkumar_mca
1 Replies

9. UNIX for Beginners Questions & Answers

Manipulate condition to send mail based on output text in file

Hi All, I have a working script as below. echo "Files loaded with $(cat /var/tmp/script.X1.out)" | mail -s "Files loaded with return code" mailid This script takes the output from script.X1.out file and appends the text "Files loaded with return code" and sends the email. Now what I want... (5 Replies)
Discussion started by: midhun3108
5 Replies

10. 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
ldapcd.conf(4)						     Kernel Interfaces Manual						    ldapcd.conf(4)

NAME
ldapcd.conf - Configuration file for the single sign-on daemon. SYNOPSIS
# comment_string parameter: integer identifier: string identifier: "quoted_string,quoted_string,..." DESCRIPTION
The ldapcd.conf file stores the current configuration of the Windows 2000 Single Sign-on daemon (SSO). The information stored in the file is specified when you configure Windows 2000 Single Sign-on and is not normally changed. The ldapcd.conf file also contains the default operating parameters for the daemon which you can tune for performance. You might need to tune performance if users wait a long period of time for the UNIX server system to respond. To tune the Windows 2000 SSO software, use a text editor to modify the values of the caching parameters as follows: The number of open con- nections that the caching daemon makes to the active directory. Increasing the value of this entry opens more connections to the active directory, however this consumes more file descriptors and increases the load on the active directory. Typically, 4 connections are ade- quate for a workstation and 15 connections are adequate for a server. Default: 4 connections The maximum number of user entries to store in cache. Increase or decrease this value as the maximum number of users increases or decreases. Default: 500 entries The maximum number of seconds to cache a user entry. Increasing this value increases performance because a user's entry is readily available in the cache. If you delete a recently used user account, its entry remains in the cache for the amount of time specified by this parameter. Default: 900 seconds. The maximum number of group IDs to cache. Increasing this value increases performance because group IDs are readily available in the cache. Default: 100 group IDs The maximum number of seconds to cache group IDs. Default: 900 seconds Using a Revised Configuration If you change the value of a cache parameter in the /etc/ldapcd.conf file, you must enter the following command to read the new configura- tion and restart the daemon: # /sbin/init.d/ldapw2k restart EXAMPLES
The following example shows a typical configuration file: # connections: 4 pw_cachesize: 500 pw_expirecache: 900 gr_cachesize: 100 gr_expirecache: 900 usesasl: 1 directory: server1 searchbase: "cn=users,DC=SSO,DC=TWOTEN,DC=COM" machine_acctname: emera.ggg.bbb.com machine_dn: "cn=emera,cn=comput- ers,DC=SSO,DC=TWOTEN,DC=COM" FILES
Location of the file. RELATED INFORMATION
Commands: ldapcd(8), lw2ksetup(8) Windows 2000 Single Sign-On Installation and Administration Guide. delim off ldapcd.conf(4)
All times are GMT -4. The time now is 07:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy