zeit/wait-for

Name: wait-for

Owner: ZEIT

Description: Small utility that waits for a file to exist and optionally have some permissions set.

Created: 2018-04-26 09:30:27.0

Updated: 2018-05-20 14:31:21.0

Pushed: 2018-04-26 10:07:16.0

Homepage: null

Size: 7

Language: C

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

wait-for

A small utility that waits for a file to exist, optionally with some permissions.

Building

Either via Docker:

cker build -t zeit/wait-for .

or using CMake (requires Linux)

dir build && cd build
ake .. -DCMAKE_BUILD_TYPE=Release
ake --build .
Usage
-for [--help] [-rwx] <file>

s for a file to exist and optionally have one or modes

--help         Shows this help message
--execute      Wait for the file to become executable
--read         Wait for the file to become readable
--write        Wait for the file to become writable
--username     The username to run access checks for (NOT the user ID)

ultiple modes are specified, wait-for waits for all of them to become available

License

Copyright © 2018 ZEIT, Inc. Released under the MIT License.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.