commit version 22.12.12447
This commit is contained in:
@ -9,7 +9,7 @@ hostname="localhost"
|
||||
port=7634
|
||||
nc=`which nc`
|
||||
|
||||
if [ $? -eq 0 ] && [ `$nc -zv $hostname $port 2>&1 | awk '{print $5}'` = "open" ]
|
||||
if [ $? -eq 0 ] && [ `$nc -zv $hostname $port 2>&1 | awk '{print $NF}'` = "open" ]
|
||||
then
|
||||
echo '<<<hddtemp>>>'
|
||||
$nc $hostname $port
|
||||
|
Reference in New Issue
Block a user