Ignore:
Timestamp:
Jun 8, 2010, 5:05:25 PM (14 years ago)
Author:
shunfa
Message:
  1. 新增function: debug_info(目的為列印訊息給開發者)
  2. 新增function: show_info(目的為列印訊息給使用者)
  3. 新增寫入mac至master:/home/nutchuser/nutchez/nutch_node
File:
1 edited

Legend:

Unmodified
Added
Removed
  • nutchez-0.2/src/test/client_install

    r152 r167  
    1414# 需要 master_install 設定的參數區
    1515# Master IP here
    16 Master_IP_Address="a.a.a.a";
     16Master_IP_Address=192.168.56.101
    1717# Master Hostname here
    18 Master_Hostname="Master_Hostname";
     18Master_Hostname=shunfa-VBox1
    1919# 此檔自己用的參數區
    2020Linux_Distribution="";
     
    2424# 參數詢問
    2525yesno="no"
    26 echo -e "\n\033[31mYour master IP: $Master_IP_Address\033[0m"
     26show_info "Your master IP: $Master_IP_Address"
    2727read -p "Is this data cooect? (yes/no): " yesno
    2828             
    2929if [ "$yesno" == "yes" ] || [ "$yesno" == "y" ] ; then
    30     echo "These parameters are correct."
     30    show_info "These parameters are correct."
    3131else
    32     echo "Plz edit these parameters in this file."
     32    show_info "Please edit these parameters in this file."
    3333    exit
    3434fi
Note: See TracChangeset for help on using the changeset viewer.