我正在做一个脚本,以基于nslookup自动验证打开的端口。 IP地址以10.XX开头
就像这样:
java -version
java version "1.8.0_151"
Java(TM) SE Runtime Environment (build 1.8.0_151-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)
travis_time:end:23204870:start=1558602135904104138,finish=1558602136218922843,duration=314818705
[0Ktravis_fold:end:before_install.18
[0Ktravis_fold:start:before_install.19
[0Ktravis_time:start:16b0d9da
[0K$ javac -version
javac 1.8.0_151
travis_time:end:16b0d9da:start=1558602136223048229,finish=1558602136845508635,duration=622460406
[0Ktravis_fold:end:before_install.19
[0Ktravis_fold:start:before_install.20
[0Ktravis_time:start:346a8d88
[0K$ mvn -version
Apache Maven 3.0.5
Maven home: /usr/share/maven
Java version: 13-ea, vendor: Oracle Corporation
Java home: /home/travis/build/Ensembl/jdk-13
Default locale: en_US, platform encoding: UTF-8
我想将IP地址行传递给netcat命令,以便他验证端口是否已打开