urxvt-mlc (1) - Linux Manuals

urxvt-mlc: control the urxvt-mld daemon

NAME

urxvt-mlc - control the urxvt-mld daemon

SYNOPSIS

urxvt-mlc [same options as for urxvt-ml]

DESCRIPTION

This manpage describes the urxvt-mlc client program. It connects to the urxvt-mld daemon and requests a new terminal window. It takes the same arguments as the urxvt-ml program. The environment will also be respected. Currently, it always returns immediately after contacting the daemon.

OPTIONS

If the first option is -k, urxvt-mlc tries to kill the daemon process and returns.

All options that are valid for urxvt-ml are valid for urxvt-mlc, too. Please note that options are interpreted in the context of the daemon process. However, as current working directory, process environment and any file descriptor (e.g. for "-pty-fd") are preserved, this rarely makes a difference.

EXIT STATUS

If everything went well, urxvt-mlc returns with an exit status of 0. If contacting the daemon fails, it exits with the exit status 2. In all other error cases it returns with status 1.

This can be used to implement auto-starting behaviour, by checking for an exit status of 2, running "urxvt-mld -f -q" and retrying the call to urxvt-mlc, like this:

   #!/bin/sh
   urxvt-mlc "$@"
   if [ $? -eq 2 ]; then
      urxvt-mld -q -o -f
      urxvt-mlc "$@"
   fi

ENVIRONMENT

All environment variables of the current process will be made available to the new instance, and will be interpreted as if urxvt-ml were started directly.
RXVT_SOCKET
Both urxvt-mlc and urxvt-mld use the environment variable RXVT_SOCKET to create a listening socket and to contact the urxvt-mld, respectively. If the variable is missing, $HOME/.urxvt/urxvtd-<nodename> is used. The variable must specify the absolute path of the socket to create.

SEE ALSO

urxvt-ml(7), urxvt-mld(1)