mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-07 05:46:03 +02:00
ncat: add -k option (#2043)
This commit is contained in:
parent
de9412b54e
commit
c610a12f84
1 changed files with 6 additions and 2 deletions
|
@ -4,8 +4,12 @@
|
||||||
|
|
||||||
- Listen for input on the specified port and write it to the specified file:
|
- 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:
|
- 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}}`
|
||||||
|
|
Loading…
Add table
Reference in a new issue