pcontrol

Name

pcontrol --  Send commands to running pproxy or pserv

Synopsis

pcontrol [-c CMD, --command=CMD] [-s FILE, --socket=FILE] [-p PRG, --program=PRG] [-q, --quiet] [-v, --verbose] [-i, --ignore-errors] [--help] [--version] [FILE...]

Description

With pcontrol commands can be send to the running pproxy or pserv server. If no files are given on the command line and the --command option is not used, commands are read interactively from the terminal. If GNU readline support is compiled in, it will be used.

If one or more filenames are given on the command line, these files are read in order and all lines are send to the server. Lines beginning with '#' are ignored. '-' can be used to read from STDIN.

If the --command option is used, the command after --command is send to the server.

If neither the --program nor the --socket option is given, the program will look for the socket of a running pproxy and if that is not found for the socket of a running pserv.

Start the program in interactive mode and type '/h' for more information about possible commands, parameters and return codes.

Options

-c CMD, --command=CMD

Send CMD to server instead of reading them from the named files.

-s FILE, --socket=FILE

Open FILE as control socket to server. This option can not be used together with --program.

-p PRG, --program=PRG

Open control socket to program PRG. The corresponding socket in /var/run/popular will be used. This option can not be used together witch --socket.

-q, --quiet

Don't print answer messages from server.

-v, --verbose

Print messages as they are sent to the server.

-i, --ignore-errors

Ignore errors from server. Without this option the program is terminated after the first error and a corresponding return code is set.

--help

Print short help screen.

--version

Print version information.

See Also

pcheck(1), pcheckd(8), pclean(8), pdeliver(1), pproxy(8), pserv(8), pstatus(1), ptestpdm(1), The POPular Manual