summaryrefslogtreecommitdiff
path: root/sys/man/1
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2023-01-03 19:18:48 +0000
committercinap_lenrek <cinap_lenrek@felloff.net>2023-01-03 19:18:48 +0000
commit68c88ddf3d41bc310e307663ac95ff1ec0353a38 (patch)
tree5935c2c736bb14f05aba5850812377686750bc58 /sys/man/1
parent916c7f0bd9295c649ce8f6f8245475d083f4b7bd (diff)
dial(1): add dial command similar to plan9port
This is similar to plan9port dial(1), but names aux/dial because we already have the expect(1) commands in /bin/dial. One difference is that our dial allows specifying a command, similar to aux/listen1 that will get connected it standard input and output to the network connection.
Diffstat (limited to 'sys/man/1')
-rw-r--r--sys/man/1/dial41
1 files changed, 41 insertions, 0 deletions
diff --git a/sys/man/1/dial b/sys/man/1/dial
new file mode 100644
index 000000000..74702869e
--- /dev/null
+++ b/sys/man/1/dial
@@ -0,0 +1,41 @@
+.TH DIAL 1
+.SH NAME
+dial - connect to a remote service
+.SH SYNOPSIS
+.B aux/dial
+.RB [ -e ]
+.I addr
+[
+.I cmd
+[
+.I args
+]...
+]
+.SH DESCRIPTION
+Dial connects to the remote network address
+.I addr
+(see
+.IR dial (2))
+and if no
+.I cmd
+is specified, copies data from the connection to standard output,
+and from standard input to the connection.
+.PP
+By default, dial exists when end of file is reached on
+standard input or on the network connection.
+The
+.B -e
+flag cuses dial to exit only in response to end of file on
+the network connection.
+.PP
+If
+.I cmd
+is given, then
+.I cmd
+is executed with standard input and output connected to
+the network connection.
+.SH SOURCE
+.B /sys/src/cmd/aux/dial.c
+.SH SEE ALSO
+.IR dial (2),
+.IR listen (8)