.\" Copyright (c) 2001 Martin K. Petersen .\" .\" This is free documentation; you can redistribute it and/or .\" modify it under the terms of the GNU General Public License .\" version 2 as published by the Free Software Foundation. .\" .\" The GNU General Public License's references to "object code" .\" and "executables" are to be interpreted as the output of any .\" document formatting or typesetting system, including .\" intermediate and printed output. .\" .\" This manual is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\" GNU General Public License for more details. .\" .\" You should have received a copy of the GNU General Public .\" License along with this manual; if not, write to the Free .\" Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, .\" USA. .\" .TH PRS 1 "13 June 2001" "Linux 2.2" "Linux Programmer's Manual" .SH NAME prs \- Power Relay Switch .SH SYNOPSIS .BI "prs " "[-p |all" .SH DESCRIPTION The .B prs command controls a BlackBox Pow-R-Switch relay connected to a serial port. It can be used to power PRS sockets up and down. A socket number must be specified, or the keyword all which results in performing the operation on all sockets. Powering down/toggling all sockets at once is not supported. .SH OPTIONS .TP .B \-p Serial port to send the commands to. Overrides PRSPORT. .TP .B \-u Power up .TP .B \-d Power down .TP .B \-t Toggle (with a delay) .TP .B \-s Display current socket states .SH ENVIRONMENT If .B \-p is not specified, .B prs will send the commands through the device specified in the PRSPORT environment variable. .SH BUGS Sometimes the PRS Master refuses to respond causing the command to enter up in the bitbucket. Retry and it works (Technically, this is because the PRS requires an 8 second login delay which I chose to ignore for an interactive command like prs). .SH AUTHOR .B prs was written by Martin K. Petersen and is released under the terms of the GNU General Public License version 2. .B prs is known to work on Linux and Solaris.