Perl script to allocate next available IP from a range
Hi
I am looking to automate the process in PERL of allocating IP addresses from a set range of addresses (for example a /22 network 10.10.224.1 - 10.10.227.254)
I am able to query the IP addresses that are already in use in the above range, which will produce me a list like this for example
What I am trying to do is find a way of taking that list and determining the next available IP address for use within the boundaries of the netmask (so for example between 10.10.224.1 and 10.10.227.254) Naturally if this was just a standard list of numbers then it would be straightforward, but given they are IP addresses, its a bit more complex
does anyone know a good starting point for this or have any experience of setting up something similar?
How to allocate memory for a shell script on aix box at the time of execution i.e at runtime
Are there any commands for AIX in specific
Thanks in Advance (1 Reply)
How to allocate memory for a shell script on aix box at the time of execution i.e at runtime
Are there any commands for AIX in specific
Thanks in Advance (3 Replies)
How to allocate memory for a shell script on aix box at the time of execution i.e at runtime
Are there any commands for AIX in specific
Thanks in Advance (1 Reply)
Hi. I have a file with asterisk field separators and backslash line terminators. The first field in each line names the line type. I am trying to process each range separately. Here's what the data looks like:
BA*DATA\
LS*DATA1*DATA2*00020*\
TA*DATA1*DATA2*DATA3*\
TA*DATA1*DATA2*DATA3*\... (1 Reply)
Hi
I'm a student who is studying system administration. I need to write a perl script to allocate disk quota to users. I'm using ubuntu and When I try to run edquota command in command line it says that Can't find file system with quota. pls help me. I tried to edit fstab. but didn't work.
... (1 Reply)
Hi,
while running the perl script i am getting this error message ,
Day '' out of range 1..31 at rsty.sh line 44
what do iam missing in the script, any suggestion
#!/usr/bin/perl
use Time::Local;
my $wday = $ARGV;
my $month = $ARGV;
# convert the month shortname into 0-11 number
if... (4 Replies)
I am writing a mod perl 2 download module and I am facing the same issue as this guy.
mp2 / Apache byterange filter | ModPerl | ModPerl
If I remove the check for EOS in byterange_filter.c and recompile Apache2, the byte range filter is executed and the result is correct but I am not sure that... (0 Replies)
hi Experts
just wondering if you can help me check a number between a specific range
if i have an ip address , how can i say the valid number for ip between 1 to 254
something like this
if ($ip ) =~ /.../
{
}
what the pattern i need to type
thanks (3 Replies)
Hello,
I'm trying to find an nice solution for the following:
1) I have ranges of numbers (begin-end): 10-15, 20-30, 45-50
2) I have begin limit=0 and end limit=60.
3) I need to find out number ranges between begin limit and end limit that do not overlap with the ranges in item1.
In this... (6 Replies)
Hi Guys,
Can someone please help me on adding/inserting a variable date to an sql scipt? Basically I want to assign a 7 days date range. As shown below..
#!/usr/bin/perl
use strict;
use Env qw(ORACLE_HOME);
my $SQLPLUS='/opt/oracle/product/10.1.0/db_1/bin/sqlplus -S... (1 Reply)
Discussion started by: pinpe
1 Replies
LEARN ABOUT DEBIAN
pob-fec
POB-FEC(1) User Command POB-FEC(1)NAME
pob-fec - receive FEC MP3 streams
SYNOPSIS
pob-fec [ -s address ] [ -p port ] [ -b size ] [ -q ]
DESCRIPTION
pob-fec receives a FEC MP3 stream using a custom protocol. The streamed MP3 frames are first decomposed in autonomous data units (ADUs).
These ADUs are grouped into ADU groups, which are encoded redundantly using a FEC method by Luigi Rizzo. For example, a group if 8 ADUs can
be encoded into 16 packets. Any 8 received packets of these 16 packets is sufficient to recover the original 8 ADUs. The incoming MP3
stream is decoded, buffered and written to stdout.
OPTIONS -s address
Specify the address to listen to (default 224.0.1.23). If the address is a multicast address, group membership is requested automat-
ically.
-p port
Specify the port to listen to.
-b size
Specify the number of ADU groups that are hold in the buffer (default 16).
-q Don't output any information on standard error.
EXAMPLES
pob-fec -s 224.0.1.24 -p 8989 | mpg123 -
Receive the MP3 FEC stream sent to 224.0.1.24 on port 8989 and feed it into the MP3 decoder mpg123.
AUTHORS
Manuel Odendahl <manuel@bl0rg.net>, Florian Wesch <dividuum@bl0rg.net>
February 2005 POB-FEC(1)