Answer the question
In order to leave comments, you need to log in
How do you understand the work of the following command?
there is a command:
#!/bin/bash
if [ "$(echo PING | nc localhost 3010)" = "PONG" ]; then
echo "ping successful"
else
echo "ping failed"
exit 1
fi
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question