Well getcanid.sh is very simple:
------------
#!/bin/sh
IP=`/sbin/route | grep default | awk '{print $2}'`
FALLBACK="x.x.x.x."
URIPATH="cgi-bin/getunitinformation.cgi"
if ! IDLINE=`wget -O - "http://$IP/$URIPATH"; 2>/dev/null | grep "UNITID"` ; then if ! IDLINE=`wget -O - "http://$FALLBACK/$URIPATH"; 2>/dev/null| grep "UNITID" 2>/dev/null` ; then
                IDLINE="UNITID=test"
        fi
fi
UNITID=`echo $IDLINE | awk -F "=" '{print $2}'`
echo $UNITID
---------------

HawkstoneAdmin is just a standard graphical linux application, it never uses stdin as far as I know. It does however make extensive use of unit postgres. I don't know if this could be affecting it.

A.J.




--
"Any sufficiently advanced technology is indistinguishable from magic" - Clarke's law "Any technology that is distinguishable from magic is insufficiently advanced" -Gehm's corollary "Any technologist that is distinguishable from a magician is insufficiently advanced" - My corollary
The worlds worst webcomic: http://silentcoder.co.za/scartoonz
The worlds best cybercafe manager: http://outkafe.outkastsolutions.co.za

begin:vcard
fn:AJ Venter
n:Venter;AJ
org:Global Pact Trading Pty. Ltd.;OutKast Solutions
email;internet:[EMAIL PROTECTED]
title:Director of Product Development
tel;work:+27 21 554 5059
tel;fax:+27 11 252 9197
tel;cell:+27 83 455 9978
url:http://www.outkastsolutions.co.za
version:2.1
end:vcard

Reply via email to