First, replace the exit 1 by return 1.
Then loop around the input until it's okay.
Here it checks the exit status of the read and the validate. If not 0(=okay) it runs the empty loop body and repeats.
The : (noop) satisfies the syntax.
Hi
I have below file with 3 rd column as date ....i want to make 3 column to mm/dd/yyyy .
in the below file 2 row date is like 1/23/1994 so i want to append '0'
to month i,e. 01/23/1994 and in the 3 row date is like 6/4/1994 ---so i want this to 06/04/1994
Source:... (1 Reply)
Hi guys!
Im tryin to set up a login script that allows a user to login with only the following "forename.surname" .
The username all contain lowercase letters so thats not a problem to sort out, but im having problems making sure that they can only enter 1 " . " . the code i have so far is this... (1 Reply)
I'm kinda new in shell scripting. How do i validate an input from a user to conform to requirement. For example,
echo "Enter First Name: "
read FName
echo "Enter Date of Employment (dd/mm/yyyy): "
read DoE
If the user enters data that is alphanumeric, it accepts it. I hope i've... (1 Reply)
Hi All,
We need to use & execute some several scripts before loading the data successfully using Informatica.
Can you help me the below scenario:
We will be receiving the files from different countries, and using ftp all the files will be placed onto the server. The file structure will be (.csv... (6 Replies)
Hi,
I am new to Unix shell scripting and need help to add some validation to an existing script.
I've made a script that takes two argument (input) but I want the script to display an error message when nothing (null) is entered. So far I managed to validate the fist argument but fail to... (2 Replies)
Hi All,
I need to write a small piece of code to check the following.
name should contain (A-Z), spaces, hyphens & apostrophes
I need to generate regular expressions for the same.
Please help me out as i am not familiar with regular expressions. (1 Reply)
Hi friends,
I have been writing one c code to validate any url passed by a user.
Here is the code I have so far coded.
I am using one dictionary file to check values like http, https, www, ftp, etc for the URL that a user will pass for validation.
My code so far holds good for every thing... (1 Reply)
Hi,
I want a script to do the following:
1)I want to find all latest files with extension *.doc and write those files to a log file which i did.
my script: find *.doc -mtime -1 -ls > test.log
2) suppose if there is no such latest files extracts script should write "Server... (8 Replies)
Hi there,
As a part of file validation, I needed to check for delimiter count in the file.
My aim is to find, how many records have failed to have predefined numbers of delimiters in the file.
My code looks like below
i=`awk -F '|' 'NF != 2 {print NR, $0} ' ${pinb_fldr}/${pfile}DAT |... (3 Replies)
Hi All
I am trying to validate a value using if condition
requirement is need to check whether its a valid numeric value
the input contains ( space, #N/A and negative and positive decimal values and Zeros)
if it contains the space, I need to display the error message as space
... (15 Replies)
Discussion started by: tsurendra
15 Replies
LEARN ABOUT CENTOS
arpsnmp
ARPSNMP(8) System Manager's Manual ARPSNMP(8)NAME
arpsnmp - keep track of ethernet/ip address pairings
SYNOPSIS
arpsnmp [ -d ] [ -f datafile ] [ -e username ] [ -s username ] file [ ... ]
DESCRIPTION
Arpsnmp keeps track for ethernet/ip address pairings. It syslogs activity and reports certain changes via email. Arpsnmp reads information
from a file (usually generated by snmpwalk(1)).
The -d flag is used enable debugging. This also inhibits mailing the reports. Instead, they are sent to stderr.
The -f flag is used to set the ethernet/ip address database filename. The default is arp.dat.
Note that an empty arp.dat file must be created before the first time you run arpsnmp.
If the -e flag is used, arpsnmp sends e-mail messages to username rather than the default (root). If a single `-' character is given for
the username, sending of e-mail is suppressed, but logging via syslog is still done as usual. (This can be useful during initial runs, to
collect data without being flooded with messages about new stations.)
If the -s flag is used, arpsnmp sends e-mail messages with username as the return address, rather than the default (root).
REPORT MESSAGES
(See the arpwatch(8) man page for details on the report messages generated by arpsnmp(8).)
FILES
/var/lib/arpwatch - default directory
arp.dat - ethernet/ip address database
ethercodes.dat - vendor ethernet block list
SEE ALSO arpwatch(8), snmpwalk(1), arp(8)AUTHORS
Craig Leres of the Lawrence Berkeley National Laboratory Network Research Group, University of California, Berkeley, CA.
The current version is available via anonymous ftp:
ftp://ftp.ee.lbl.gov/arpwatch.tar.gz
BUGS
Please send bug reports to arpwatch@ee.lbl.gov.
Attempts are made to suppress DECnet flip flops but they aren't always successful.
4th Berkeley Distribution 17 September 2000 ARPSNMP(8)