[sf-perl] hostid in mac os x?

Neil Heller nheller at silcon.com
Sat Jan 5 20:41:17 PST 2008

Are you running a bash shell on a MAC?

Neil Heller

-----Original Message-----
From: sanfrancisco-pm-bounces+nheller=silcon.com at pm.org
[mailto:sanfrancisco-pm-bounces+nheller=silcon.com at pm.org] On Behalf Of
David Alban
Sent: Saturday, January 05, 2008 7:10 PM
To: San Francisco Perl Mongers User Group
Subject: Re: [sf-perl] hostid in mac os x?

and followups

i haven't used my module on a mac since then, but i now want to do so.
 fyi, my solution:  create /usr/local/bin/hostid, which contains:


    export PATH=/sbin:/bin:/usr/sbin:/usr/bin

    ifconfig en0 | grep ether | awk '{ print $2 }' | sed 's/://g'

i want a hostid because there's a routine in my module which sends
email, and i add an 'X-Hostid' header to each message.

Live in a world of your own, but always welcome visitors.
SanFrancisco-pm mailing list
SanFrancisco-pm at pm.org

More information about the SanFrancisco-pm mailing list