1 | .\" Automatically generated by Pod::Man v1.37, Pod::Parser v1.14 |
1 | .\" Automatically generated by Pod::Man v1.37, Pod::Parser v1.35 |
2 | .\" |
2 | .\" |
3 | .\" Standard preamble: |
3 | .\" Standard preamble: |
4 | .\" ======================================================================== |
4 | .\" ======================================================================== |
5 | .de Sh \" Subsection heading |
5 | .de Sh \" Subsection heading |
6 | .br |
6 | .br |
… | |
… | |
126 | . ds Ae AE |
126 | . ds Ae AE |
127 | .\} |
127 | .\} |
128 | .rm #[ #] #H #V #F C |
128 | .rm #[ #] #H #V #F C |
129 | .\" ======================================================================== |
129 | .\" ======================================================================== |
130 | .\" |
130 | .\" |
131 | .IX Title "rxvt 1" |
131 | .IX Title "@@RXVT_NAME@@ 1" |
132 | .TH rxvt 1 "2006-02-02" "7.5" "RXVT-UNICODE" |
132 | .TH @@RXVT_NAME@@ 1 "2007-10-27" "8.4" "RXVT-UNICODE" |
133 | .SH "NAME" |
133 | .SH "NAME" |
134 | @@RXVT_NAME@@c \- control the @@RXVT_NAME@@d daemon |
134 | @@RXVT_NAME@@c \- control the @@RXVT_NAME@@d daemon |
135 | .SH "SYNOPSIS" |
135 | .SH "SYNOPSIS" |
136 | .IX Header "SYNOPSIS" |
136 | .IX Header "SYNOPSIS" |
137 | \&\fB@@RXVT_NAME@@c\fR [same options as for @@RXVT_NAME@@] |
137 | \&\fB@@RXVT_NAME@@c\fR [same options as for @@RXVT_NAME@@] |
… | |
… | |
143 | will also be respected. Currently, it always returns immediately after |
143 | will also be respected. Currently, it always returns immediately after |
144 | contacting the daemon. |
144 | contacting the daemon. |
145 | .SH "OPTIONS" |
145 | .SH "OPTIONS" |
146 | .IX Header "OPTIONS" |
146 | .IX Header "OPTIONS" |
147 | All options that are valid for \fB@@RXVT_NAME@@\fR are valid for |
147 | All options that are valid for \fB@@RXVT_NAME@@\fR are valid for |
148 | \&\fB@@RXVT_NAME@@c\fR, too. Please note that all options are currently |
148 | \&\fB@@RXVT_NAME@@c\fR, too. Please note that options are interpreted in the |
149 | interpreted in the context of the daemon process, which makes a difference |
149 | context of the daemon process. However, as current working directory, |
150 | for options that specify a file descriptor (such as \fB\-pty\-fd\fR). |
150 | process environment and any file descriptor (e.g. for \f(CW\*(C`\-pty\-fd\*(C'\fR) are |
|
|
151 | preserved, this rarely makes a difference. |
151 | .SH "EXIT STATUS" |
152 | .SH "EXIT STATUS" |
152 | .IX Header "EXIT STATUS" |
153 | .IX Header "EXIT STATUS" |
153 | If everything went well, @@RXVT_NAME@@c returns with an exit status of \f(CW0\fR. |
154 | If everything went well, @@RXVT_NAME@@c returns with an exit status of \f(CW0\fR. |
154 | If contacting the daemon fails, it exits with the exit status \f(CW2\fR. In all other error |
155 | If contacting the daemon fails, it exits with the exit status \f(CW2\fR. In all other error |
155 | cases it returns with status \f(CW1\fR. |
156 | cases it returns with status \f(CW1\fR. |
156 | .PP |
157 | .PP |
157 | This can be used to implement auto-starting behaviour, by checking for an |
158 | This can be used to implement auto-starting behaviour, by checking for an |
158 | exit status of \f(CW2\fR, running \f(CW\*(C`@@RXVT_NAME@@d \-f \-q\*(C'\fR and retrying the call |
159 | exit status of \f(CW2\fR, running \f(CW\*(C`@@RXVT_NAME@@d \-f \-q\*(C'\fR and retrying the call |
159 | to @@RXVT_NAME@@c. |
160 | to @@RXVT_NAME@@c, like this: |
|
|
161 | .PP |
|
|
162 | .Vb 6 |
|
|
163 | \& #!/bin/sh |
|
|
164 | \& @@RXVT_NAME@@c "$@" |
|
|
165 | \& if [ $? -eq 2 ]; then |
|
|
166 | \& @@RXVT_NAME@@d -q -o -f |
|
|
167 | \& @@RXVT_NAME@@c "$@" |
|
|
168 | \& fi |
|
|
169 | .Ve |
160 | .SH "ENVIRONMENT" |
170 | .SH "ENVIRONMENT" |
161 | .IX Header "ENVIRONMENT" |
171 | .IX Header "ENVIRONMENT" |
162 | All environment variables of the current process will be made available |
172 | All environment variables of the current process will be made available |
163 | to the new instance, and will be interpreted as if \fB@@RXVT_NAME@@\fR were |
173 | to the new instance, and will be interpreted as if \fB@@RXVT_NAME@@\fR were |
164 | started directly. |
174 | started directly. |