---
name: "inputkill"
section: "1"
platform: "linux"
package: "watch-maildirs"
version: "1.2.0-2.2+b1"
release: "Debian 11 (Bullseye)"
platforms: ["linux"]
url: "https://new.carta.tech/inputkill"
---

# inputkill(1)

run a command until standard input is closed

## NAME

inputkill - run a command until standard input is closed

## SYNOPSIS

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

## DESCRIPTION

**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.

## SEE ALSO

[**ssh**(1)](/ssh/1.md), [**rsh**(1)](/rsh/1.md)

**inputkill** is part of [**mswatch**(1)](/mswatch/1.md); mswatch website: http://mswatch.sf.net/

## AUTHOR

Written by Chris Frost \<chris@frostnet.net\>.
