rcmd.3 (1798791d24d371e78812304b3fa3ec7a87b84f98) rcmd.3 (ae828962685b8ae9e5104ce8e7fe8b05effcb9ec)
1.\" Copyright (c) 1983, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 91 unchanged lines hidden (view full) ---

100residing at the well-known Internet port
101.Fa inport .
102.Pp
103If the connection succeeds,
104a socket in the Internet domain of type
105.Dv SOCK_STREAM
106is returned to the caller, and given to the remote
107command as
1.\" Copyright (c) 1983, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 91 unchanged lines hidden (view full) ---

100residing at the well-known Internet port
101.Fa inport .
102.Pp
103If the connection succeeds,
104a socket in the Internet domain of type
105.Dv SOCK_STREAM
106is returned to the caller, and given to the remote
107command as
108.Em stdin
108.Dv stdin
109and
109and
110.Em stdout .
110.Dv stdout .
111If
112.Fa fd2p
113is non-zero, then an auxiliary channel to a control
114process will be set up, and a descriptor for it will be placed
115in
116.Fa *fd2p .
117The control process will return diagnostic
118output from the command (unit 2) on this channel, and will also
119accept bytes on this channel as being
120.Ux
121signal numbers, to be
122forwarded to the process group of the command.
123If
124.Fa fd2p
125is 0, then the
111If
112.Fa fd2p
113is non-zero, then an auxiliary channel to a control
114process will be set up, and a descriptor for it will be placed
115in
116.Fa *fd2p .
117The control process will return diagnostic
118output from the command (unit 2) on this channel, and will also
119accept bytes on this channel as being
120.Ux
121signal numbers, to be
122forwarded to the process group of the command.
123If
124.Fa fd2p
125is 0, then the
126.Em stderr
126.Dv stderr
127(unit 2 of the remote
128command) will be made the same as the
127(unit 2 of the remote
128command) will be made the same as the
129.Em stdout
129.Dv stdout
130and no
131provision is made for sending arbitrary signals to the remote process,
132although you may be able to get its attention by using out-of-band data.
133.Pp
134The protocol is described in detail in
135.Xr rshd 8 .
136.Pp
137The

--- 161 unchanged lines hidden ---
130and no
131provision is made for sending arbitrary signals to the remote process,
132although you may be able to get its attention by using out-of-band data.
133.Pp
134The protocol is described in detail in
135.Xr rshd 8 .
136.Pp
137The

--- 161 unchanged lines hidden ---