当前位置: 首页 > news >正文

免费下载图片的网站有哪些百度打开百度搜索

免费下载图片的网站有哪些,百度打开百度搜索,做购物网站数据库分析,网站建设发展史实战演练 本节将展示一个实用脚本,该脚本在处理用户输入的同时,使用 ping 命令或 ping6 命令来测试与其他网络主机的连通性。 ping 命令或 ping6 命令可以快速测试网络主机是否可用。这个命令很有用,经常作为首选工具。如果只是检查单个主机&…

实战演练
本节将展示一个实用脚本,该脚本在处理用户输入的同时,使用 ping 命令或 ping6 命令来测试与其他网络主机的连通性。
ping 命令或 ping6 命令可以快速测试网络主机是否可用。这个命令很有用,经常作为首选工具。如果只是检查单个主机,那么直接使用该命令即可。
但是如果有数个甚至数百个主机需要检查,则 shell 脚本可以助你一臂之力。

这个脚本通过两种方法来选择要检查的主机:一是使用命令行选项,二是使用文件。下面是
该脚本在 Ubuntu 系统中使用命令行选项的用法演示:

$ ./CheckSystems.sh -t IPv4 192.168.1.102 192.168.1.104 
Checking system at 192.168.1.102... 
[...] 
--- 192.168.1.102 ping statistics --- 
3 packets transmitted, 3 received, 0% packet loss,[...] 
Checking system at 192.168.1.104... 
[...] 
--- 192.168.1.104 ping statistics --- 
3 packets transmitted, 0 received, +3 errors, 100% packet loss,[...] 
$


如果没有指定 IP 地址参数,则脚本会提示用户并退出:

$ ./CheckSystems.sh -t IPv4 
IP Address(es) parameters are missing. 
Exiting script... 
$$ cat CheckSystems.sh 
#!/bin/bash 
# Check systems on local network allowing for 
# a variety of input methods. 
# 
# 
########### Determine Input Method ################### 
# 
# Check for command-line options here using getopts. 
# If none, then go on to File Input Method 
# 
while getopts t: opt 
do case "$opt" in t) # Found the -t option if [ $OPTARG = "IPv4" ] then pingcommand=$(which ping) #elif [ $OPTARG = "IPv6" ] then pingcommand=$(which ping6) # else echo "Usage: -t IPv4 or -t IPv6" echo "Exiting script..." exit fi ;; *) echo "Usage: -t IPv4 or -t IPv6" echo "Exiting script..." exit;; esac # shift $[ $OPTIND - 1 ] # if [ $# -eq 0 ] then echo echo "IP Address(es) parameters are missing." echo echo "Exiting script..." exit fi # for ipaddress in "$@" do echo echo "Checking system at $ipaddress..." echo $pingcommand -q -c 3 $ipaddress echo done exit 
done 
# 
########### File Input Method ################### 
# 
echo 
echo "Please enter the file name with an absolute directory reference..." 
echo 
choice=0 
while [ $choice -eq 0 ] 
do read -t 60 -p "Enter name of file: " filename if [ -z $filename ] then quitanswer="" read -t 10 -n 1 -p "Quit script [Y/n]? " quitanswer #case $quitanswer in Y | y) echo echo "Quitting script..." exit;; N | n) echo echo "Please answer question: " choice=0;; *) echo echo "No response. Quitting script..." exit;; esac else choice=1 fi 
done 
# 
if [ -s $filename ] && [ -r $filename ] 
then echo "$filename is a file, is readable, and is not empty." echo cat $filename | while read line do ipaddress=$line read line iptype=$line if [ $iptype = "IPv4" ] then pingcommand=$(which ping) else pingcommand=$(which ping6) fi echo "Checking system at $ipaddress..." $pingcommand -q -c 3 $ipaddress echo done echo "Finished processing the file. All systems checked." 
else echo echo "$filename is either not a file, is empty, or is" echo "not readable by you. Exiting script..." 
fi 
# 
#################### Exit Script ##################### 
# 
exit 
$


 

http://www.shuangfujiaoyu.com/news/59079.html

相关文章:

  • iis应用程序池 网站湖南网络推广排名
  • 企业做网上推广长沙电商优化
  • 什么网站看电影是免费的杭州seo建站
  • 成都网络营销学校seo方法培训
  • 做网站封面要怎么做360搜索引擎地址
  • 做网站海口美国最新新闻头条
  • 房门户网站如何做优化厦门seo全网营销
  • 两个网站做的h5如何合在一起搜索引擎推广方式
  • 政府网站群建设要求搜索引擎下载安装
  • 中文网站开发如何推广外贸型网站
  • 外贸网站流量滨州seo排名
  • wordpress图片抓取插件seo排名赚app多久了
  • 网站有备案 为企业搜索优化指的是什么
  • 在智联招聘网站做销售怎样建网站?
  • 果洛州wap网站建设公司网络推广与网络营销的区别
  • 申请摇号广州网站2023年7月最新新闻摘抄
  • 新发布一个网站公告怎么做seo基础培训机构
  • 大都会同行票怎么使用视频qq群排名优化软件
  • 自己可以做公司网站吗青岛网站推广企业
  • 嘉兴市做外贸网站的郑州有没有厉害的seo
  • 怎么建立小公司网站全网营销推广方案
  • 广州定制网站制作平台百度帐号申请注册
  • 百度做网站怎么联系合肥seo网络优化公司
  • 长沙做模板网站百度搜索资源
  • 网站开发实训报告参考文献网络营销公司经营范围
  • 做ppt的图片素材网站百度seo通科
  • 如何自己设计logo图标网站排名优化软件
  • 淘宝客如何做网站百度指数怎么算
  • 做带支付功能的网站seo管理与优化期末试题
  • 网站建设所属行业网站优化要多少钱