.TH inputkill 1 .. .SH NAME inputkill \- run a command until standard input is closed .. .SH SYNOPSIS \fBinputkill\fR [\fIoptions\fR] <\fIcommand\fR> [\fIarguments\fR ...] .. .SH DESCRIPTION \fBinputkill\fR runs a given command until standard input is closed. \fBinputkill\fR passes on all file descriptors except for standard input; \fIcommand\fR is given no standard input. \fBinputkill\fR is useful for promptly exiting a program ran via ssh when the connection is closed. For example, \fIssh host inputkill sleep 60\fR runs the command \fIsleep\fR on the computer named \fIhost\fR until either sixty seconds elapse or the ssh connection is terminated. The argument "--" disables argument parsing for all proceeding arguments; e.g. "inputkill ls -l" will pass "-l" to inputkill and run "ls", whereas "inputkill -- ls -l" will run "ls -l". .. .SH OPTIONS .TP \fB\-V\fR, \fB\-\-version\fR Display version information. .TP \fB-?\fR, \fB\-\-help\fR Display a summary of command line options. .. .SH SEE ALSO .BR ssh (1), .BR rsh (1) .P .BR inputkill is part of .BR mswatch (1); mswatch website: http://mswatch.sf.net/ .. .SH AUTHOR Written by Chris Frost .