Search Results

Search: Posts Made By: fusetrips
1,803
Posted By fusetrips
Currently I using bash. I am able to...
Currently I using bash.

I am able to calculate only one echo but I am not able to sum up the whole thing. Inside the echo itself has a variable which arises to different value.
1,803
Posted By fusetrips
How do I calculate total number of active and non active hosts?
#!/bin/bash
for digit in $(seq 1 10)
do
if ping -c1 -w2 192.168.1.$digit &> /dev/null
then
echo "192.168.1.$digit is UP"
else
echo "192.168.1.$digit is DOWN"
fi
done
4,937
Posted By fusetrips
Simple bash script menu
Dear Sir,

May I know how do I go about adding the following feature into the script below:

When user enter values other than 1,2,3,4,

a) Message “Wrong entry !!! Pls select 1,2,3 or 4” is...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 03:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy