Skip to content

Instantly share code, notes, and snippets.

@lrtfm
Created March 3, 2018 12:50
Show Gist options
  • Save lrtfm/c57912fa616c4adc2ac02d4445f41f18 to your computer and use it in GitHub Desktop.
Save lrtfm/c57912fa616c4adc2ac02d4445f41f18 to your computer and use it in GitHub Desktop.
检测哪些节点可以正常 rsh 登陆
bhosts | grep ok | cut -d" " -f1 | while read a; do if rsh $a test >/dev/null 2>&1; then echo $a; fi done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment