.TH "WAITFOR" "1" "2013/02/24" .nh .ad l .SH "NAME" waitfor \- wait for a file action, with timeout. .SH "SYNOPSIS" .HP \w'\fBwaitfor\&.so\fR\ 'u \fBwaitfor\fR [\-t \fIseconds\fR] [\-n] file .SH "DESCRIPTION" .PP \fBwaitfor\fR 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\&. .PP .SH "RETURN VALUES" .PP The program will return 0 if the file action happens\&. If no timeout is specified, \fBwaitfor\fR will wait forever\&. If a timeout is specified, and the file action does not happen within the timeout specified, \fBwaitfor\fR will return 1\&. .PP .SH "SEE ALSO" .PP \fBpam_sshauth\fR(8), .SH "AUTHOR" .PP waitfor was written by Scott Balneaves \&.