mailto:[EMAIL PROTECTED]
Sent: Thursday, June 15, 2006 8:52 AM
To: Perl-beginners
Subject: Re: Getting ip address
> Danny wrote:
> > Hi list,
> >
> > I am trying to get the ip address from each of my NIC's (only the ip
address) from ifconfig and then
> > mail
> Danny wrote:
> > Hi list,
> >
> > I am trying to get the ip address from each of my NIC's (only the ip
> > address) from ifconfig and then
> > mailing the addresses to a remote mailbox. The problem is that I am making
> > one BIG
> > stuff-up out of it and I am too embarrassed to post my scrip
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160
Danny wrote:
> Hi list,
>
> I am trying to get the ip address from each of my NIC's (only the ip address)
> from ifconfig and then
> mailing the addresses to a remote mailbox. The problem is that I am making
> one BIG
> stuff-up out of it and I
#! /usr/bin/perl
use CGI;
$q = new CGI;
$ip = $q->remote_host;
if ( $ip eq 'w.x.y.z')
{ # code
} else
{ # code
}
--
Djoko Priyono
System Programmer
PT Dyviacom Intrabumi Tbk.
Jakarta - Indonesia
On Wednesday 21 November 2001 08:02 pm, Rahul Garg wrote:
> Hi everybo
http://www.atomicdesigns.net/adime/perl/lists/env.html
You'll be wanting the REMOTE_ADDR details.
HTH
John
-Original Message-
From: Rahul Garg [mailto:[EMAIL PROTECTED]]
Sent: 21 November 2001 13:02
To: [EMAIL PROTECTED]
Subject: getting ip address
Hi everybody,
The problem goes lik