Last active
September 16, 2015 05:41
-
-
Save eriknomitch/5c65e4359a6f4f838c93 to your computer and use it in GitHub Desktop.
'silence' shell script for prefixing commands to send output to /dev/null
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/zsh | |
micro_host_suffixes=('white' 'green' 'orange') | |
for suffix in $micro_host_suffixes; do | |
echo -n "micro-$suffix... " | |
silence ssh -o "ConnectTimeout 10" micro-$suffix true && echo up || echo down | |
done |
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/zsh | |
$* > /dev/null 2>&1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment