From 9f85b0ccab7aa516be6d260f6359e67b1621d7e4 Mon Sep 17 00:00:00 2001 From: Sam Mingo Date: Sat, 27 Oct 2018 16:33:52 -0400 Subject: [PATCH] Fixed typo w/ -ll switch I believe this to be a typo, `nc` in the man pages that I've checked doesn't include `-ll` as an option, merely a single `-l` to listen. --- rhel/init.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rhel/init.sh b/rhel/init.sh index c1282c0..313cfa3 100755 --- a/rhel/init.sh +++ b/rhel/init.sh @@ -1,3 +1,3 @@ #!/bin/sh -while true; do echo -e "HTTP/1.1 200 OK\n\n$(date)\nHost: $(tail -1 /etc/hosts| awk '{print $2}')" | nc -ll -p 8080; done +while true; do echo -e "HTTP/1.1 200 OK\n\n$(date)\nHost: $(tail -1 /etc/hosts| awk '{print $2}')" | nc -l -p 8080; done