how to check if ip is up bash script
Shell
#!/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:
- Title
- list number of files in each folder linux
- Category
- Shell
- Title
- how to install pipenv
- Category
- Shell
- Title
- read string by string in file in linux
- Category
- Shell
- Title
- Failed at the [email protected] postinstall script.
- Category
- Shell
- Title
- check os shell liunx cygwin darwin
- Category
- Shell
- Title
- install openjdk 8 sdk on ubuntu
- Category
- Shell
- Title
- install vuex
- Category
- Shell
- Title
- count occurrences of word in file linux ignoring case
- Category
- Shell
- Title
- a2ensite example.
- Category
- Shell
- Title
- pycharm duplicate line
- Category
- Shell
- Title
- How to find your ip on debian linux wsl
- Category
- Shell
- Title
- how to install wordpress ubuntu 16.04 rosehosting
- Category
- Shell
- Title
- install AdminLTE
- Category
- Shell
- Title
- how to connect to the database as root user in linux
- Category
- Shell
- Title
- install pybind ubuntu
- Category
- Shell
- Title
- edit branch name git
- Category
- Shell
- Title
- git find login
- Category
- Shell
- Title
- linux install node
- Category
- Shell
- Title
- install numpy
- Category
- Shell
- Title
- /usr/local/share/doc/node is not writable.
- Category
- Shell
- Title
- linux command print only odd columns
- Category
- Shell
- Title
- read file using shell script
- Category
- Shell
- Title
- ubuntu install sfml
- Category
- Shell
- Title
- grep not
- Category
- Shell
- Title
- react-devtools agent got no connection
- Category
- Shell
- Title
- python install random library
- Category
- Shell
- Title
- process runninng on particular port
- Category
- Shell
- Title
- bash echo to stderr
- Category
- Shell
- Title
- how to kill tasks using grep
- Category
- Shell
- Title
- mongodb shell query last document
- Category
- Shell
- Title
- how to add font icon in gatsby
- Category
- Shell
- Title
- stop elasticsearch node
- Category
- Shell
- Title
- install docker debain
- Category
- Shell
- Title
- linux df -h levels occupy
- Category
- Shell
- Title
- cmd delete folder
- Category
- Shell
- Title
- boolean constants in bash
- Category
- Shell
- Title
- npm install @angular/fire firebase –save
- Category
- Shell
- Title
- install signal desk
- Category
- Shell
- Title
- ubuntu run multiple commands in one line and let them run after close shell
- Category
- Shell
- Title
- pod deintegrate
- Category
- Shell
- Title
- install deno
- Category
- Shell
- Title
- how to install rclone as service on windows
- Category
- Shell
- Title
- list all files in a directory and subdirectory linux
- Category
- Shell
- Title
- Failed to set up listener: SocketException: Address already in use
- Category
- Shell
- Title
- how to get ssh access to a computer
- Category
- Shell
- Title
- serverless sqs batch size
- Category
- Shell
- Title
- Verificação de acesso de escrita [/srv/moodle/lib/editor/atto/plugins] Instalação abortada devido a falha de validação
- Category
- Shell
- Title
- composer drupal install
- Category
- Shell
- Title
- updating git on mac
- Category
- Shell
- Title
- split large file into smaller files
- Category
- Shell
- Title
- install pip ubuntu
- Category
- Shell
- Title
- python convert excel to html table
- Category
- Shell
- Title
- rails no migration with version number
- Category
- Shell
- Title
- how to kill a process in linux
- Category
- Shell
- Title
- install rbenv
- Category
- Shell
- Title
- change remote repository git
- Category
- Shell
- Title
- how to revert commit in git
- Category
- Shell
- Title
- git effacer banch
- Category
- Shell
- Title
- create a screen screen session tmux
- Category
- Shell
- Title
- git push
- Category
- Shell
- Title
- create a repo using github api
- Category
- Shell
- Title
- run python program from command line
- Category
- Shell
- Title
- powershell output text file
- Category
- Shell
- Title
- Why doesn't Git ignore my specified file?
- Category
- Shell
- Title
- install nuxt
- Category
- Shell
- Title
- search by message git
- Category
- Shell
- Title
- how to update git on windows
- Category
- Shell
- Title
- git clone repo with name
- Category
- Shell
- Title
- git remove remote
- Category
- Shell
- Title
- update ubuntu
- Category
- Shell
- Title
- Realtek RTL8812BU Network WiFi Adapter kali linux driver
- Category
- Shell
- Title
- ng2-dragula valor software github
- Category
- Shell
- Title
- increase open file limit linux mac catalina mariadb
- Category
- Shell
- Title
- FATAL module ucvideo not found
- Category
- Shell
- Title
- ubuntu add user to group
- Category
- Shell
- Title
- how to install jupyter notebook in windows 10
- Category
- Shell
- Title
- youtube api python
- Category
- Shell
- Title
- remove git tracking
- Category
- Shell
- Title
- git delete branch
- Category
- Shell
- Title
- gpg: can't connect to the agent: IPC connect call failed
- Category
- Shell
- Title
- documentation gitlab ci en francais
- Category
- Shell
- Title
- git reset keep changes
- Category
- Shell
- Title
- how to copy ssh key
- Category
- Shell
- Title
- how to upload existing project to github
- Category
- Shell
- Title
- rsync backup
- Category
- Shell
- Title
- crear una aplicación con angular cli
- Category
- Shell
- Title
- ssh usage copy file
- Category
- Shell
- Title
- ubuntu set scale to 150
- Category
- Shell
- Title
- command to edit in terminal linux
- Category
- Shell
- Title
- how to install pip in anaconda
- Category
- Shell
- Title
- run jar file command line
- Category
- Shell
- Title
- corewar 42 github
- Category
- Shell
- Title
- gatsby image
- Category
- Shell
- Title
- search for files in linux terminal
- Category
- Shell
- Title
- logrotate force rotation
- Category
- Shell
- Title
- linux rsync example
- Category
- Shell
- Title
- pip3 not found
- Category
- Shell
- Title
- apt get install docker compose
- Category
- Shell
- Title
- move a branch back in git
- Category
- Shell
- Title
- remove all iptables rules
- Category
- Shell