Hi all,
I have a scenario where my perl program has to find the IP address
of the machine. I didn't know how to achieve this in perl (yet to look
cpan though), so i tried doing it through shell commands. The usual way
we do it is by 'ifconfig' and here is how i achieved that,
`/sbin/ifconfig | grep inet | awk '{print $2}' | sed 's#addr:##g'`
If anyone of you could achieve this, through a simple means, plz let me
know.
Regards,
Arun Velusamy