From c610a12f8442271fd620e912308ab6652bcd0c6d Mon Sep 17 00:00:00 2001 From: zlbabe <31076777+zlbabe@users.noreply.github.com> Date: Mon, 26 Mar 2018 07:47:48 +0000 Subject: [PATCH] ncat: add -k option (#2043) --- pages/linux/ncat.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pages/linux/ncat.md b/pages/linux/ncat.md index 6b6a7322aa..c8da3aad51 100644 --- a/pages/linux/ncat.md +++ b/pages/linux/ncat.md @@ -4,8 +4,12 @@ - Listen for input on the specified port and write it to the specified file: -`ncat -l {{port}} > {{/path/to/file}}` +`ncat -l {{port}} > {{path/to/file}}` + +- Accept multiple connections and keep ncat open after they have been closed: + +`ncat -lk {{port}}` - Write output of specified file to the specified host on the specified port: -`ncat {{address}} {{port}} < {{/path/to/file}}` +`ncat {{address}} {{port}} < {{path/to/file}}`