当前位置:网站首页>Shell common script: check whether a domain name and IP address are connected
Shell common script: check whether a domain name and IP address are connected
2022-07-25 13:05:00 【Uh huh**】
ping.sh
#!/bin/bash
targetAddr=$1
if [ $1 ] && ( ping -c 2 ${targetAddr} &>/dev/null ); then
echo "${targetAddr} through "
else
echo ' The target address is empty or the target address cannot be accessed , Please check '
fi

边栏推荐
- I register the absolutely deleted data in the source sqlserver, send it to maxcomputer, and write the absolute data when cleaning the data
- Migrate PaloAlto ha high availability firewall to panorama
- web安全入门-UDP测试与防御
- Shell常用脚本:检测某域名、IP地址是否通
- Detailed explanation of flex box
- 2022.07.24 (lc_6126_design food scoring system)
- 【AI4Code】《CoSQA: 20,000+ Web Queries for Code Search and Question Answering》 ACL 2021
- 使用vsftpd服务传输文件(匿名用户认证、本地用户认证、虚拟用户认证)
- Handwriting a blog platform ~ first day
- Shell Basics (exit control, input and output, etc.)
猜你喜欢

【历史上的今天】7 月 25 日:IBM 获得了第一项专利;Verizon 收购雅虎;亚马逊发布 Fire Phone

Clickhouse notes 03-- grafana accesses Clickhouse

2022.07.24 (lc_6124_the first letter that appears twice)

B树和B+树

如何理解Keras中的指标Metrics

clickhouse笔记03-- Grafana 接入ClickHouse

Cyberspace Security penetration attack and defense 9 (PKI)

yum和vim须掌握的常用操作
![[advanced C language] dynamic memory management](/img/b7/6586b35500eb8f39a3ea8c125fb572.png)
[advanced C language] dynamic memory management

2022.07.24 (lc_6126_design food scoring system)
随机推荐
[Video] Markov chain Monte Carlo method MCMC principle and R language implementation | data sharing
Leetcode 0133. clone diagram
Lu MENGZHENG's "Fu of broken kiln"
Want to go whoring in vain, right? Enough for you this time!
Plus SBOM: assembly line BOM pbom
【Rust】引用和借用,字符串切片 (slice) 类型 (&str)——Rust语言基础12
MySQL remote connection permission error 1045 problem
Shell常用脚本:获取网卡IP地址
Deployment of Apache website services and implementation of access control
2022.07.24 (lc_6126_design food scoring system)
JS 将伪数组转换成数组
【问题解决】org.apache.ibatis.exceptions.PersistenceException: Error building SqlSession.1 字节的 UTF-8 序列的字
零基础学习CANoe Panel(12)—— 进度条(Progress Bar)
弹性盒子(Flex Box)详解
【历史上的今天】7 月 25 日:IBM 获得了第一项专利;Verizon 收购雅虎;亚马逊发布 Fire Phone
Use of hystrix
工业互联网的内涵及其应用
mysql函数汇总之日期和时间函数
How to understand metrics in keras
深度学习的训练、预测过程详解【以LeNet模型和CIFAR10数据集为例】