how to check if ip is up bash script
#!/bin/bash
IP='192.168.1.1'
fping -c1 -t300 $IP 2>/dev/null 1>/dev/null
if [ "$?" = 0 ]
then
echo "Host found"
else
echo "Host not found"
fi
Also in Shell:
- ubuntu chmod codes
- ubuntu show disk space
- how to delete services in kubernetes
- git ignore file mode changes
- bash call another script relative to current script
- package 'mana-toolkit' has no installation candidate
- git replace local branch with remote
- Install xlrd >= 1.0.0 for Excel support Use pip or conda to install xlrd
- git stas hauntracked files
- linux remove root access
- gparted ubuntu
- how to remove a pushed file from git
- list changed files git
- gunicorn launch django cmd
- msdos dir for subdirectories
- shell get location of function
- git clone repo with name
- rsync examples
- powershell get arguments
- install bootstrap in angular 9
- remove mysql
- how to uninstall npm package
- gcloud cd /root permission denied
- github check local branches