Changeset 174 for nutchez-0.2/src/test/add_hosts
- Timestamp:
- Jun 10, 2010, 11:52:51 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
nutchez-0.2/src/test/add_hosts
r172 r174 2 2 # Program: 3 3 # Add nutch_nodes to /etc/hosts (for nutchez management interface). 4 # $1=/home/nutchuser/nutch _nodes4 # $1=/home/nutchuser/nutchez/system/nutch_nodes 5 5 # $2=/etc/hosts 6 6 # Author: … … 38 38 done 39 39 40 # 附加 nutch_nodes 到 /etc/hosts 41 cp -f /etc/hosts /etc/hosts.bak 42 cat $1 | grep -v '#' >> $2 40 # Backup /etc/hosts 41 cp -f "$2" "$2.bak" 42 43 # attache nutch_nodes to hosts 44 sed -i '/# NutchEz add/d' $2 45 echo "# NutchEz add" >>$2 46 cat $1 | grep -v '#' >>$2 47
Note: See TracChangeset
for help on using the changeset viewer.