Index: /nutchez-0.2/src/test/client_install
===================================================================
--- /nutchez-0.2/src/test/client_install	(revision 146)
+++ /nutchez-0.2/src/test/client_install	(revision 147)
@@ -88,3 +88,6 @@
 # 安裝及啟動
 install_nutch_package
+read
 
+# 回覆 Hostname 和 IP 給 Master Server
+recall_hostname_ip $Master_IP_Address
Index: /nutchez-0.2/src/test/client_install_func.sh
===================================================================
--- /nutchez-0.2/src/test/client_install_func.sh	(revision 146)
+++ /nutchez-0.2/src/test/client_install_func.sh	(revision 147)
@@ -247,7 +247,39 @@
 
 
-function install_nutch_package () {
+function install_nutch_package(){
   tar -zxvf /opt/nutchez/NutchezForClientOf_$Master_IP_Address.tar.gz -C /
   /opt/nutchez/nutch/bin/hadoop-daemon.sh start datanode
   /opt/nutchez/nutch/bin/hadoop-daemon.sh start tasktracker
 }
+
+function recall_hostname_ip(){
+echo -e "\n= recall_hostname_ip (debug) ="
+
+net_interfaces=$(ifconfig | grep eth | cut -d " " -f1)
+declare -i i=1
+echo -e "\nWhich network use for this machine: "
+
+for net in $net_interfaces
+    do
+        echo "($i) $net"
+        i=i+1
+    done
+
+read net_choice
+echo "choice is $net_choice"
+
+net_interface=$(echo $net_interfaces | cut -d " " -f $net_choice)
+
+ifconfig $net_interface | grep "inet addr:" | sed 's/^.*inet addr://g' | cut -d " " -f1
+net_address=$(ifconfig $net_interface | grep "inet addr:" | sed 's/^.*inet addr://g' | cut -d " " -f1)
+#net_address=$(ifconfig eth"${net_choice}" | grep "inet addr:" | sed 's/^.*inet addr://g' | sed 's/Bcast.*$//g')
+echo "net_address is $net_address"
+
+su nutchuser -c "ssh nutchuser@$1 echo $net_address $(hostname) \>\> ~/nutch_nodes"
+#su nutchuser -c expect -c "spawn ssh nutchuser@$1
+#set timeout 1
+#expect \"*\"
+#send \"echo $net_address $(hostname) >> /home/nutchuser/nutch_nodes\r\"
+#expect \"*\"
+#send \"exit\""
+}
