Results 1 to 2 of 2
How to make an install script for the script below?
Code:
#!/bin/bash
if eval "ping -c 1 xxxx"; then
echo "Internet konekcija funkcionise"
else
echo "Internet konekcija ne funkcionise"
fi
...
- 08-17-2010 #1Just Joined!
- Join Date
- Aug 2010
- Posts
- 1
Issue with install script
How to make an install script for the script below?
Any help?Code:#!/bin/bash if eval "ping -c 1 xxxx"; then echo "Internet konekcija funkcionise" else echo "Internet konekcija ne funkcionise" fi
- 08-17-2010 #2Just Joined!
- Join Date
- Jul 2010
- Posts
- 53
presuming xxxx is something you should be able to ping (like yahoo.com) - something like:
Code:ping -c 1 xxxx > /dev/null if [ $? -eq 0 ]; then echo "yes" else echo "no" fi


Reply With Quote