This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -u | |
set -e | |
if [ $# -ne 1 ]; then | |
echo "Usage: $0 hadoop_home_directory" | |
echo " e.g. $0 /home/test/hadoop-2.4.1" | |
exit -1 | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
tmux attach -t chen || tmux new -s chen |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Get IP for specified host using 'http://ping.eu/ping', then write it to hosts. | |
if [ $# -ne 1 ]; then | |
echo "Usage: $0 host" | |
echo " e.g. # $0 baidu.com" | |
exit 0 | |
fi |
NewerOlder