[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
510-862-4387


-----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?

Reference:
http://mail.pm.org/pipermail/sanfrancisco-pm/2006-December/000814.html
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:

    #!/bin/bash

    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
http://mail.pm.org/mailman/listinfo/sanfrancisco-pm



More information about the SanFrancisco-pm mailing list