inputkill(1)

inputkill1

Run a command until standard input is closed

Usage

inputkill [options] <command> [arguments ...]

Overview

inputkill runs a given command until standard input is closed. inputkill passes on all file descriptors except for standard input; command is given no standard input.

inputkill is useful for promptly exiting a program ran via ssh when the connection is closed. For example, ssh host inputkill sleep 60 runs the command sleep on the computer named host 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".

Options

-V, --version

Display version information.

-?, --help

Display a summary of command line options.

Releases

Unchanged in 6 releases since Debian 6.0 (Squeeze).

  1. 6.0–11

Author

Written by Chris Frost <[email protected]>.

From watch-maildirs 1.2.0-2.2+b1 in Debian 11 (Bullseye). Parsed by carta from the page's man source.