Skip to content

Instantly share code, notes, and snippets.

@justjkk
Created May 5, 2010 16:59
Show Gist options
  • Save justjkk/391087 to your computer and use it in GitHub Desktop.
Save justjkk/391087 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo Pinging 192.168.1.3 \
&& \
ping -c1 192.168.1.3 > /dev/null 2>&1 \
&& \
echo Ping Succeeded \
|| echo Ping Failed;
echo Press Enter key to exit...;
read;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment