waitfor(1)

waitfor1

Wait for a file action, with timeout.

Usage

waitfor [-t seconds] [-n] file

Overview

waitfor will wait for a file to appear, or with the -n option, for a file to disappear. If a timeout is provided, with the [-t] option, if the file action doesn't happen within the time specified, the program will exit.

Return values

The program will return 0 if the file action happens. If no timeout is specified, waitfor will wait forever. If a timeout is specified, and the file action does not happen within the timeout specified, waitfor will return 1.

Releases

Unchanged in 2 releases since Debian 8 (Jessie).

  1. 8–9

Author

waitfor was written by Scott Balneaves <[email protected]>.

From libpam-sshauth 0.4.1-2+b1 in Debian 9 (Stretch). Parsed by carta from the page's man source.