Hi All,
This is a small snippet that I am using to validate the format of IP address.This is working fine.
Since this is not elegant, please let me know if anyone has a better working code than the one below.
Also I am planning to ping the ip address given by the user and check the $? variable. Also let me know if anyone has a better way out, to check if the ip address is on the network.
This is what I have to check date entries in an interactive script with the end users... I use this to build control cards for a reporting utility supplied by a software vendor.
I also want to check to make sure its a valid day based on the month (ie 30days has sept, april, june and Nov..)... ... (2 Replies)
how do i validate y script so that it only accepts values between 1 and 3 and against any character input, cause at the moment i can only validate against numbers outside 1 and 3 but not characters
cheers (4 Replies)
What's wrong with this syntax? It's part of my 'if' statement but it doesn't seem to pass and it keeps going to the 'else' part.
I thought it says that userid must start with a non-numeric character and is between 6 and 10 characters long (alphanumeric).
$userid|grep -Eq '^?\{6,10\}+$'
if... (2 Replies)
Hi there,
I'm trying to validate my $1 and $2 before I use them in the sqlplus update, I think I have the validation rules set correctly??? however when I test my script, it jumps straight into the sql. It doesn't seem to validate the vars....even when I know they are incorrect.
if ; then
... (6 Replies)
HELP: validating IP addresses any way possible
--------------------------------------------------------------------------------
I am trying to validate input from the user in a script. I thought is was easy to do using regular expressions but I can't figure out how to use REs in a... (1 Reply)
:) Firstly Hi all!!, im NEW!! and on here hoping that someone might be able to offer me some help... i have a server that keeps crashing every few days with the error message:
PANIC KERNAL-MODE ADDRESS FAULT ON USER ADDRESS 0X14
KERNAL PAGE FAULT FROM (CS:EIP)=(100:EF71B5BD)
EAX=EF822000... (10 Replies)
Pardon my ignorance but I am lost on how to do this
I have a file called "Sample.txt", it is pipe delimited, it should have 13 fields. But some of the records do not, I would like to set up a shell script
where I can pass in a parameter "Sample.txt" and it would split the file into records... (2 Replies)
HI,
I am trying to write a validation script as below
awk '($1=="ABC"&&$2="XYZ" ,then check the value in $8,$10 these columns should not be null.
so their should be some corresponding value n the $8 and $10 column,if their is no value the script has to give error saying that at a... (2 Replies)
i need to verify whether the ip adress given as input to the shell script is pingable or not... that is whether the ip is alive and responding..
ping $ip_adress
the above wont work in script because the execution is continuous... so the shell script keeps will dwell in this pinging process...... (8 Replies)
Hi ,
Could someone let me know how to detect duplicate ip address after assigning ip address to ethernet interface using c program (3 Replies)
Discussion started by: Gopi Krishna P
3 Replies
LEARN ABOUT MOJAVE
net::dns::rr::apl5.18
Net::DNS::RR::APL(3) User Contributed Perl Documentation Net::DNS::RR::APL(3)NAME
Net::DNS::RR::APL - DNS APL resource record
SYNOPSIS
use Net::DNS;
$rr = new Net::DNS::RR('name IN APL aplist');
DESCRIPTION
DNS Address Prefix List (APL) record
METHODS
The available methods are those inherited from the base class augmented by the type-specific methods defined in this package.
Use of undocumented package features or direct access to internal data structures is discouraged and could result in program termination or
other unpredictable behaviour.
aplist
@aplist = $rr->aplist;
@aplist = $rr->aplist( '1:192.168.32.0/21', '!1:192.168.38.0/28' );
@aplist = $rr->aplist( '1:224.0.0.0/4', '2:FF00:0:0:0:0:0:0:0/8' );
@aplist = $rr->aplist( negate => 1,
family => 1,
address => '192.168.38.0',
prefix => 28,
);
Ordered, possibly empty, list of address prefix items. Additional items, if present, are appended to the existing list with neither prefix
aggregation nor reordering.
Net::DNS::RR::APL::Item
Each element of the prefix list is a Net::DNS::RR::APL::Item object which is inextricably bound to the APL record which created it.
negate
$rr->negate(0);
$rr->negate(1);
if ( $rr->negate ) {
...
}
Boolean attribute indicating the prefix to be an address range exclusion.
family
$family = $rr->family;
Address family discriminant.
prefix
$prefix = $rr->prefix;
Number of bits comprising the address prefix.
address
$address = $object->address;
Address portion of the prefix list item.
string
$string = $object->string;
Returns the prefix list item in the form required in zone files.
COPYRIGHT
Copyright (c)2008 Olaf Kolkman, NLnet Labs.
Portions Copyright (c)2011 Dick Franks.
Package template (c)2009,2012 O.M.Kolkman and R.W.Franks.
All rights reserved.
This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
perl, Net::DNS, Net::DNS::RR, RFC3123
perl v5.18.2 2014-01-16 Net::DNS::RR::APL(3)