Search Results

Search: Posts Made By: hcclnoodles
9,882
Posted By hcclnoodles
thanks
thanks
9,882
Posted By hcclnoodles
Thanks, so within my perl script I can invoke...
Thanks, so within my perl script I can invoke shell (cheating a bit) to get the result

my $firstthree = `echo $ip | sed -e 's/\.[^.]*\$//'`;
chomp $firstthree;


Which returns the desired...
9,882
Posted By hcclnoodles
Perl one liner to extract first three octets of IP Address
Hi

I have an inherited perl script that extracts the first three octets of an IP Address using a combination of split() against a dot and then builds it all back together again, its a whole block...
1,389
Posted By hcclnoodles
Hi RudiC, at the moment I am starting from...
Hi RudiC, at the moment I am starting from scratch. I will probably define the network I want to allocate against within the script, or maybe pass it in as an argument... either way, lets assume I...
1,389
Posted By hcclnoodles
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...
859
Posted By hcclnoodles
ah, the square brackets is where I went wrong ,...
ah, the square brackets is where I went wrong , thanks RudiC
859
Posted By hcclnoodles
Removing all characters up to initial '{'
Hi there,

Im having a bit of difficulty with this one and I suspect its because of the character I want to match against maybe causing me a problem, but i wanted to remove everything up to (but...
Forum: Solaris 06-19-2015
5,731
Posted By hcclnoodles
thanks for all your help guys, I will use a...
thanks for all your help guys, I will use a combination of the above to get the job done :)
Forum: Solaris 06-18-2015
5,731
Posted By hcclnoodles
Edit non-global zone IP address - non-interactively
Hi there

I have a global zone with 178 zones on it :-)

The entire box is moving to an entirely new network and I need to write a script that will configure the zones config file in /etc/zones...
Forum: Red Hat 02-06-2014
1,148
Posted By hcclnoodles
RPM packaging a directory of files
Hi, I wonder if anyone can point me in the right direction


I have a requirement to distribute a set of admin scripts that currently sit in an SVN repo by packaging them up in an RPM so that they...
1,016
Posted By hcclnoodles
thats great, thanks a lot it works :) ... so am I...
thats great, thanks a lot it works :) ... so am I right in saying the the columns ($1, $2 etc) are determinied by the bracketted parts of the match statement ?
1,016
Posted By hcclnoodles
PERL - split() with space 'except' on last value
Hi there, i wonder if somebody could help

I have a file that i want to split out into a hash, but the delimiter is either a space or a comma but the last column needs to be able to include spaces...
1,930
Posted By hcclnoodles
thanks that is a great starting point, much...
thanks that is a great starting point, much appreicated :D
1,930
Posted By hcclnoodles
Perl: find next available lowest number that is available in two arrays
Hi there. I have a number allocation problem whereby I have 2 arrays built from 2 different sources. The arrays will just contain a listed of sorted numbers

@a

1
7
10
14
15
16

@b

1...
1,571
Posted By hcclnoodles
Perl: array name tha contains contents of a variable
Hi there

I have a counter called

my $counter = 0;

I am trying to build an array that will have a name that is for example

my @array0 = ("some", "stuff");


but instead of hard coding...
2,232
Posted By hcclnoodles
thats brilliant, thanks for that the output...
thats brilliant, thanks for that

the output appears as


iface ip zonename

nxge3: 10.90.24.145
nxge3:1: 0.0.0.0
nxge3:2: myzone1 10.90.24.82
nxge3:3: myzone2 10.90.24.81
nxge3:4: myzone3...
2,232
Posted By hcclnoodles
Grabbing IP and zonename from multiline 'ifconfig' output
Hi There,

I have a Solaris server that has a bunch of zones configured and I am trying to write a script that will take all interfaces other than the loopback ones (e.g. lo0:3 etc) and present...
Forum: Solaris 09-25-2012
7,725
Posted By hcclnoodles
:( Do I really need to install the openwin...
:( Do I really need to install the openwin desktop environment, just to start apache?

seems crazy

Is there a way around without having to recompile anything. Im using the sunfreeware apache and...
Forum: Solaris 09-24-2012
7,725
Posted By hcclnoodles
lrwxrwxrwx 1 root root 26 Sep 24...
lrwxrwxrwx 1 root root 26 Sep 24 17:27 /usr/lib/libX11.so.4 -> ../openwin/lib/libX11.so.4


bash-3.2# ls -l /usr/openwin/
total 0
bash-3.2#
Forum: Solaris 09-24-2012
7,725
Posted By hcclnoodles
libX11.so.4 - how do i get this ?
Hi there

I am trying to install the prerequisites for sunfreeware apache/php, one of which is apparrantly libX11.so.4

bash-3.2# ldd /usr/local/apache2/modules/libphp5.so
librt.so.1 => ...
1,780
Posted By hcclnoodles
thanks for your help guys :)
thanks for your help guys :)
1,780
Posted By hcclnoodles
search for string and add the second line below
Hi there, i have an /etc/hosts file that is organised in sections, like this

#
# Oracle Servers
#
1.1.1.1 boxa
2.2.2.2 boxb
9.9.9.9 boxj

#
# Prod Sybase Servers
#
6.6.6.6 boxt...
1,595
Posted By hcclnoodles
thanks pravi27 (you were very quick, i realised i...
thanks pravi27 (you were very quick, i realised i missed a bracket and edited the post pretty quickly) :)


Tyler , thanks for the explanation, it is clear now :b:
1,595
Posted By hcclnoodles
Thanks pravin27, this works fine if...
Thanks pravin27, this works fine

if (defined($new) && ( ! defined $hostname)) {
print "ERROR: If using --new, you must define a hostname\n";
...
1,595
Posted By hcclnoodles
perl : question about defined()
Hi there

rather than doing this

if (defined($new)) {
unless (defined($hostname)) {
print "ERROR: If using --new, you must define a hostname\n";
exit 1;
}
}


is...
Showing results 1 to 25 of 295

 
All times are GMT -4. The time now is 03:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy