I'am The first script
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了I'am The first script相关的知识,希望对你有一定的参考价值。
扫描局域网中的地址,然后只对up的机器发2次包
[[email protected] ~]# cat /etc/centos-release
CentOS release 6.7 (Final)
[[email protected] ~]# uname -a
Linux localhost 2.6.32-573.el6.x86_64 #1 SMP Thu Jul 23 15:44:03 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
#!/bin/bash
clear
date +%y-%m-%d-%H:%M:%S
mount /dev/sr0 /mnt/usb1
wget https://nmap.org/dist/nmap-7.50.tar.bz2
tar -jxvf nmap-7.50.tar.bz2
cd ./nmap-7.50
yum -y install gcc*
./configure -prefix=/usr/local/opop && make && make install
ln -s /usr/local/opop/bin/nmap /bin
for p in `nmap -sn 192.168.0.0/24 |grep $192.168|awk -F "(" ‘{print $2}‘ | sed ‘s/)//g‘`
do
echo "the ip of $p computer is"
ping -c 2 $p
done
以上是关于I'am The first script的主要内容,如果未能解决你的问题,请参考以下文章
Namespace declaration statement has to be the very first statement in the script
Namespace declaration statement has to be the very first statement in the script-去除bom头
The service base of EF I am using
The value of 'list_editable[0]' refers to the first field in 'list_display' ('ti