Skip to content

Instantly share code, notes, and snippets.

@eriknomitch
Last active September 16, 2015 05:41
Show Gist options
  • Save eriknomitch/5c65e4359a6f4f838c93 to your computer and use it in GitHub Desktop.
Save eriknomitch/5c65e4359a6f4f838c93 to your computer and use it in GitHub Desktop.
'silence' shell script for prefixing commands to send output to /dev/null
#!/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
#!/bin/zsh
$* > /dev/null 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment