Hi Sam,
I'm not sure to get it but you could use the IP address of each machine, look
into startofbiz.sh:
IPADDR=`/sbin/ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print
$1}'`From that you could parse (ie remove the dot) and create an unique Id for each machine
Also Googled for "sh properties file access", found this as 2nd entry in the SERP http://shrubbery.mynetgear.net/c/display/W/Reading+Java-style+Properties+Files+with+Shell
HTH Jacques Sam Hamilton wrote:
Hey everyone! This is kinda a weird question but does anyone know a way to auto insert the machines hostname in the unique.instanceId variable in general.properties? I am asking as I am migrating over to AWS and trying to automate the build for a whole clustered stack so that if one of the instances dies the system knows and rebuilds. Something like unique.instanceId=$HOSTNAME but I don't know where to find the supported list of variables that a properties file can have? CheersSam
smime.p7s
Description: S/MIME cryptographic signature
