一品网
  • 首页

shell简单ping函数


#!/bin/bash
pingserver=192.168.1.11

pingcmd()
{
ping -w 1 -c 1 $pingserver >/dev/null
result=`ping -w 1 -c 1 $pingserver|grep -q "ttl" && echo 0 ||echo 1`
return $result
}

pingcmd
ret=$?
if [ $ret -eq 1 ]
then printf "$pingserver is down"
fi

ping

相关


ORM(Object Relational Mapping)

异常:This application has no explicit mapping for /error, so you are seeing this

SmokePing 快速搭建

Sping简介

spingboot中使用scheduled设置定时任务注意事项

42. Trapping Rain Water

CentOS7网络ping不通详解

nginx启动报错(1113: No mapping for the Unicode character exists in the target mu

[转]CreateFileMapping实现的共享内存及用法

C语言折半算法/二分查找算法/数字扫雷算法(binary search algorithm、digital mineswee

OpenGL 阴影之Shadow Mapping和Shadow Volumes

ping带时间记录

标签

一品网 冀ICP备14022925号-6