Just a memo. これでいける。
# while true; do echo 'Hello nc server!' | nc -l 80; [ $? != 0 ] && break; done
-
[ $? != 0 ]は Control + c で終了するために必要 - Mac の場合は
sudo su -してから実行
Getting with curl.
$ curl -s http://localhost/
Hello nc server!
bye.
Go to list of users who liked
Share on X(Twitter)
Share on Facebook
More than 5 years have passed since last update.
Just a memo. これでいける。
# while true; do echo 'Hello nc server!' | nc -l 80; [ $? != 0 ] && break; done
[ $? != 0 ] は Control + c で終了するために必要sudo su - してから実行Getting with curl.
$ curl -s http://localhost/
Hello nc server!
bye.
Register as a new user and use Qiita more conveniently
Go to list of users who liked