ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/doc/rxvtc.1.pod
(Generate patch)

Comparing rxvt-unicode/doc/rxvtc.1.pod (file contents):
Revision 1.3 by root, Wed Feb 1 18:07:18 2006 UTC vs.
Revision 1.4 by root, Sat Jul 22 05:35:16 2006 UTC

15contacting the daemon. 15contacting the daemon.
16 16
17=head1 OPTIONS 17=head1 OPTIONS
18 18
19All options that are valid for B<@@RXVT_NAME@@> are valid for 19All options that are valid for B<@@RXVT_NAME@@> are valid for
20B<@@RXVT_NAME@@c>, too. Please note that all options are currently 20B<@@RXVT_NAME@@c>, too. Please note that options are interpreted in the
21interpreted in the context of the daemon process, which makes a difference 21context of the daemon process. However, as current working directory,
22for options that specify a file descriptor (such as B<-pty-fd>). 22process environment and any file handles (e.g. for C<-pty-fd>) are
23preserved, this rarely makes a difference.
23 24
24=head1 EXIT STATUS 25=head1 EXIT STATUS
25 26
26If everything went well, @@RXVT_NAME@@c returns with an exit status of C<0>. 27If everything went well, @@RXVT_NAME@@c returns with an exit status of C<0>.
27If contacting the daemon fails, it exits with the exit status C<2>. In all other error 28If contacting the daemon fails, it exits with the exit status C<2>. In all other error
28cases it returns with status C<1>. 29cases it returns with status C<1>.
29 30
30This can be used to implement auto-starting behaviour, by checking for an 31This can be used to implement auto-starting behaviour, by checking for an
31exit status of C<2>, running C<@@RXVT_NAME@@d -f -q> and retrying the call 32exit status of C<2>, running C<@@RXVT_NAME@@d -f -q> and retrying the call
33to @@RXVT_NAME@@c, like this:
34
35 #!/bin/sh
32to @@RXVT_NAME@@c. 36 @@RXVT_NAME@@c "$@"
37 if [ $? -eq 2 ]; then
38 @@RXVT_NAME@@d -q -o -f
39 @@RXVT_NAME@@c "$@"
40 fi
33 41
34=head1 ENVIRONMENT 42=head1 ENVIRONMENT
35 43
36All environment variables of the current process will be made available 44All environment variables of the current process will be made available
37to the new instance, and will be interpreted as if B<@@RXVT_NAME@@> were 45to the new instance, and will be interpreted as if B<@@RXVT_NAME@@> were

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines