blob: 2bb66aaef85a41df33a1782262094c75f588aba6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Language" content="en" />
<title>s6-networking: the s6-ipcclient program</title>
<meta name="Description" content="s6-networking: the s6-ipcclient program" />
<meta name="Keywords" content="s6-networking s6-ipcclient ipcclient ucspi unix client" />
<!-- <link rel="stylesheet" type="text/css" href="http://skarnet.org/default.css" /> -->
</head>
<body>
<p>
<a href="index.html">s6-networking</a><br />
<a href="http://skarnet.org/software/">Software</a><br />
<a href="http://skarnet.org/">skarnet.org</a>
</p>
<h1> The <tt>s6-ipcclient</tt> program </h1>
<p>
<tt>s6-ipcclient</tt> is an
<a href="http://cr.yp.to/proto/ucspi.txt">UCSPI client tool</a> for
Unix domain sockets. It connects to a socket, then executes into
a program.
</p>
<h2> Interface </h2>
<pre>
s6-ipcclient [ -q | -Q | -v ] [ -p bindpath ] [ -l localname ] <em>path</em> <em>prog...</em>
</pre>
<ul>
<li> s6-ipcclient connects to a Unix domain socket on <em>path</em>. </li>
<li> It executes into <em>prog...</em> with descriptor 6 reading from
the socket and descriptor 7 writing to it. </li>
</ul>
<h2> Environment variables </h2>
<p>
<em>prog...</em> is run with
the following variables set:
</p>
<ul>
<li> PROTO: always set to IPC </li>
<li> IPCLOCALPATH: set to the path associated with the local socket,
if any. Be aware that it may contain arbitrary characters. </li>
</ul>
<h2> Options </h2>
<ul>
<li> <tt>-q</tt> : be quiet. </li>
<li> <tt>-Q</tt> : be normally verbose. This is the default. </li>
<li> <tt>-v</tt> : be verbose. </li>
<li> <tt>-p <em>localpath</em></tt> : bind the local
socket to <em>localpath</em> before connecting to <em>path</em>. </li>
<li> <tt>-l <em>localname</em></tt> : use <em>localname</em>
as the value of the IPCLOCALPATH environment variable. </li>
</ul>
</body>
</html>
|