Changeset 205
- Timestamp:
- Jun 18, 2010, 9:21:07 AM (14 years ago)
- Location:
- nutchez-0.2/src/test
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
nutchez-0.2/src/test/client_remove.sh
r204 r205 63 63 show_info "$edit_hosts_echo_1" # "修改/etc/hosts..." 64 64 Line_NO=`cat /etc/hosts | grep -n $Master_IP_Address | sed 's/:.*//g'` 65 sed -i ''$Line_NO'd' /etc/hosts 65 if [[ $Line_NO -ge 1 ]]; then 66 sed -i ''$Line_NO'd' /etc/hosts 67 fi 66 68 show_info "$edit_hosts_echo_2" # "完成修改/etc/hosts" 67 69 } -
nutchez-0.2/src/test/master_remove.sh
r203 r205 65 65 function edit_hosts () { 66 66 show_info "$edit_hosts_echo_1" # "修改/etc/hosts..." 67 68 67 slaves_list=`cat $nutch_PATH'/nutch_nodes' | cut -d' ' -f1` 69 68 for nutch_node in $slaves_list 70 69 do 71 70 Line_NO=`cat /etc/hosts | grep -n $nutch_node | sed 's/:.*//g'` 72 sed -i ''$Line_NO'd' /etc/hosts 71 if [[ $Line_NO -ge 1 ]]; then 72 sed -i ''$Line_NO'd' /etc/hosts 73 fi 73 74 done 74 75 show_info "$edit_hosts_echo_2" # "完成修改/etc/hosts"
Note: See TracChangeset
for help on using the changeset viewer.