Sponsored Content
Top Forums Shell Programming and Scripting Check for proper e mail id format Post 302133141 by prolay on Wednesday 22nd of August 2007 06:37:10 AM
Old 08-22-2007
Check for proper e mail id format

Hi,
We run an application called meta which reads user information from database and updates in LDAP.For that we have some scripts to check the uniqueness of mail ids between the existing LDAP and Database.It works fine when people enter mail ids in proper format (xxx.yyy@abc.com) but if it entered in wrong format (x 99 yy abc@com) the uniqueness check fails. We extract the mail ids in a text file before adding. Can you suggest any script which will remove the wrong entry. We use solaris 9 as OS.
Thanks in advance
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Net::SSH::Perl ...... how to print the output in a proper format

Hi Guys, my $cmd = "ls -l"; #........ {or let it be as # my $cmd= "ls"; } my $ssh = Net::SSH::Perl->new($host); $ssh->login($user, $pass); my($stdout, $stderr, $exit) = $ssh->cmd("$cmd"); print $stdout; the script works fine, but i am unable to see the output getting displayed in a... (7 Replies)
Discussion started by: gsprasanna
7 Replies

2. Shell Programming and Scripting

Output file not displayed in the proper format

Hi am using uuencode fro attaching one report which is nothing but sql query output. But when i receive the report through attachement and when it is opened the report is not displayed in proper format. Means if the sql query has 100 rows the mail attachment report displays the report in 2... (2 Replies)
Discussion started by: weknowd
2 Replies

3. UNIX for Dummies Questions & Answers

check file is a proper flv

Hello, On a linux server (centos 5.4), users upload file that should be flv. How can I check that the file is a real and proper flv file? Checking the extension is not enough! Thanks (1 Reply)
Discussion started by: JCR
1 Replies

4. Shell Programming and Scripting

Getting Proper Date Format in SH Script

There's a small SH script I'm trying to write where it will get the current month and find a log file that is based on the date. Example: Today is February, so the log file is going to be 201102.log (2011 + 02) An additional thing is that if today is the 1st of a month, it will also find the log... (3 Replies)
Discussion started by: kooshi
3 Replies

5. Shell Programming and Scripting

Need to split a xml file in proper format

Hi, I have a file which has xml data but all in single line Ex - <?xml version="1.0"?><User><Name>Robert</Name><Location>California</Location><Occupation>Programmer</Occupation></User> I want to split the data in proper xml format Ex- <?xml version="1.0"?> <User> <Name>Robert</Name>... (6 Replies)
Discussion started by: avishek007
6 Replies

6. Solaris

how to check links exists proper or not in solaris 10

Hi, I am using solaris 10 OS and Bash shell.I am looking for the command to check whether link is exits or not.if not i have to create it Requirement here is say in the server1 i have a directory /spa/5.0.in that directory there are so many links exist. Example links: genver ->... (7 Replies)
Discussion started by: muraliinfy04
7 Replies

7. Shell Programming and Scripting

perl script to check the mail ids in the correct format or not

Hi Folks, I have few mailids in a text file and need to check whether the mailid is in correct format or not. If just to check whether the string is a mailid or not there is a perl module Email::Valid to do the business or we can implement our own logic. But the mail_ids I am having is... (4 Replies)
Discussion started by: giridhar276
4 Replies

8. Shell Programming and Scripting

Awk - Summation in Proper decimal Format

Hi I am executing below command to do summation on 46th coloumn. cat File1| awk -F"|" '{p += $46} END { printf"Column Name | SUM | " p}' I am getting output as Column Name | SUM | 1.01139e+10 Here I want output in Proper decimal format. Can someone tell me what change is required for same? (1 Reply)
Discussion started by: sanranad
1 Replies

9. Shell Programming and Scripting

Need to grep this Data in proper format:- Please Guide

Hi Guys, I need to grep below data in this format backup_id creation expiration policy sched_label backup_id = picoserver38_1212077050, version = 2 creation = 05/29/2008 18:04:10 (1212077050) expiration = 06/29/2008 18:04:10 (1214755450) retention_level = 3, fragment = 2, file_num = 1... (14 Replies)
Discussion started by: manalisharmabe
14 Replies

10. Shell Programming and Scripting

Combine multiline to one line with proper format

Hello Guys, I have a file say FILE1.txt contains below data:- A B C D E F G H I J K L I need the output in another file as FILE2 as:- 'A', 'B', 'C', 'D', 'E', (7 Replies)
Discussion started by: jassi10781
7 Replies
WARNQUOTA.CONF(5)						File Formats Manual						 WARNQUOTA.CONF(5)

NAME
warnquota.conf - configuration for warnquota SYNOPSIS
/etc/warnquota.conf DESCRIPTION
The warnquota.conf file stores a configuration for warnquota(8) tool which is used to notify a user or a group who exceeds its disk quota limits. The syntax is an option name followed by an equal sign and the option value. White space characters surrounding the option names and val- ues are allowed. Empty lines or lines starting with a hash sign or a semicolon are ignored. An option value can but does not have to be quoted. The value can span across multiple lines provided each previous line ends with a back- slash. Some option values can contain formatting sequences which will be expanded to their respective values. Following sequences are recognized: %d domain name %h host name %i, %s user or group name %% literal % character | new-line character OPTIONS
CC_BEFORE Send to copy-carbon address only when a user has less than specified grace time left. Value is a number followed by a time unit. Known units are seconds, minutes, hours, and days. Example: 5 days CC_TO An e-mail address to put into copy-carbon (CC:) recipient header. Default value is root. CHARSET Defines character set for sent e-mails. Default value will be current locale character set used when executing warn- quota command, if locale is not either C or POSIX. Otherwise no character set will be specified in the e-mails. FROM Defines From: e-email address. Default value is support@localhost. GROUP_MESSAGE A text sent as an e-mail body if a group exceeds its limits. This option recognizes formatting sequences. GROUP_SIGNATURE A signature text appended to notification for a group. Default value is a general explanation utilizing SUPPORT and PHONE values. This option recognizes formatting sequences. LDAP_BASEDN Base distinguished name for LDAP queries. LDAP_BINDDN Bind distinguished name for LDAP queries. LDAP_BINDPW Bind password for LDAP queries. LDAP_DEFAULT_MAIL_DOMAIN Default e-mail address domain of searched user if given LDAP attribute does not specify any. LDAP_HOST LDAP server name to connect to if LDAP_URI is not defined. LDAP_MAIL A boolean controlling if LDAP has to be used to look up user's e-mail address. Possible values are true and false. Default value is false. LDAP_MAIL_ATTRIBUTE The LDAP attribute which holds user's e-mail address. LDAP_PORT LDAP server port number to connect to if LDAP_URI is not defined. LDAP_SEARCH_ATTRIBUTE The LDAP attribute which holds user's ID to look up. LDAP_URI The URL of LDAP server to use to search user's e-mail addresses. This option takes preference over LDAP_HOST and LDAP_PORT. Example: ldaps://example.com:389/ MESSAGE A beginning of text sent as an e-mail body if a user exceeds his limits. This option recognizes formatting sequences. MAIL_CMD The command to execute to send an e-mail. The e-mail text including all headers is passed to the standard input of the command. Default value is /usr/lib/sendmail -t. MAILDEV The device with disk quotas to exclude from sending notifications if there are exceeded limits. This option should identify the device where mail boxes are stored to prevent from bouncing the warnquota notification by local MDA due to no space for storing new e-mails. Special value any denotes all devices. PHONE The telephone contact to the user support. Default value is (xxx) xxx-xxxx or (yyy) yyy-yyyy. SIGNATURE The end of e-mail body if a user exceeds its limits. Default value is a general explanation utilizing SUPPORT and PHONE values. This option recognizes formatting sequences. SUBJECT The text to put into Subject: header. Default value is Disk Quota usage on system. SUPPORT The contact to the user support. Default value is support@localhost. EXAMPLE
# comment FROM = root@example.com SUPPORT = support@example.com PHONE = 1234 FILES
/etc/warnquota.conf configuration for warnquota(8) SEE ALSO
warnquota(8). WARNQUOTA.CONF(5)
All times are GMT -4. The time now is 01:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy