All Projects → typekpb → wtfc

typekpb / wtfc

Licence: MIT license
WaiT For the Command (wtfc)

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to wtfc

mdevd
A kernel event manager compatible with mdev.conf
Stars: ✭ 45 (+73.08%)
Mutual labels:  busybox
U Root
A fully Go userland with Linux bootloaders! u-root can create a one-binary root file system (initramfs) containing a busybox-like set of tools written in Go.
Stars: ✭ 1,816 (+6884.62%)
Mutual labels:  busybox
natick
natickOS - A minimal, lightweight, research Linux Distribution
Stars: ✭ 33 (+26.92%)
Mutual labels:  busybox
crosware
Tools, things, stuff, miscellaneous, etc., for Chrome OS / Chromium OS
Stars: ✭ 36 (+38.46%)
Mutual labels:  busybox
Build Linux
A short tutorial about building Linux based operating systems.
Stars: ✭ 4,960 (+18976.92%)
Mutual labels:  busybox
wait-until
A zero dependency Bash script that waits until a command of your choosing has run successfully.
Stars: ✭ 42 (+61.54%)
Mutual labels:  wait
Root-Checker
Displays all root related info(Device Rooted, Root Available, Root Path, Root given, Busy Box installation) of an Android Device. Fully implemented in Jetpack compose using Material 3 dynamic theming and also has a separate implementation in xml with MDC 3.
Stars: ✭ 21 (-19.23%)
Mutual labels:  busybox
retries
Forget about your retry boilerplate
Stars: ✭ 14 (-46.15%)
Mutual labels:  wait
Coreutils
Cross-platform Rust rewrite of the GNU coreutils
Stars: ✭ 9,603 (+36834.62%)
Mutual labels:  busybox
await
28Kb, small memory footprint, single binary that run list of commands in parallel and waits for their termination
Stars: ✭ 73 (+180.77%)
Mutual labels:  wait
sabotage
a radical and experimental distribution based on musl libc and busybox
Stars: ✭ 502 (+1830.77%)
Mutual labels:  busybox
Microdot
The Microdot Project guides you to create a fully functional but compact Linux system from scratch
Stars: ✭ 41 (+57.69%)
Mutual labels:  busybox
pscale-workflow-helper-scripts
Workflows and helper scripts around the PlanetScale DB workflow to automate database branch creation, association, update and merge directly out of your pull/merge request or favourite CI/CD.
Stars: ✭ 42 (+61.54%)
Mutual labels:  wait
vita
《深度探索Linux操作系统 : 系统构建和原理解析》 学习笔记
Stars: ✭ 55 (+111.54%)
Mutual labels:  busybox
tenda-reverse
Reverse engineering, getting root access to Tenda MW6 wifi mesh router
Stars: ✭ 90 (+246.15%)
Mutual labels:  busybox
yosild
Yosild is a single shell script that builds a full, minimal Linux distribution based on BusyBox.
Stars: ✭ 97 (+273.08%)
Mutual labels:  busybox
wait-for
./wait-for is a script to wait for another service to become available.
Stars: ✭ 1,618 (+6123.08%)
Mutual labels:  wait
nats-box
A container with NATS utilities
Stars: ✭ 55 (+111.54%)
Mutual labels:  busybox
conbox
conbox is a Go implementation of unix-like utilities as single static executable intended for small container images.
Stars: ✭ 36 (+38.46%)
Mutual labels:  busybox
waiter
Delayed iteration for polling and retries.
Stars: ✭ 17 (-34.62%)
Mutual labels:  wait

WaiT For the Command (wtfc)

Build Status

Shell script capable of waiting for command execution exit status for specified timeout.

Works well with POSIX shells:

  • ash, bash, dash, ksh and zsh on Linux, OSX, Busybox as well as git-bash on Windows (see our CI env).

Shells we don't support include:

  • tcsh|csh (due to missing function definition support) and fish.

Usage

Usage: wtfc.sh [OPTION]... [COMMAND]
wtfc (WaiT For The Command) waits for the COMMAND provided as the last argument or via standard input to return within timeout with expected exit status.

Functional arguments:
  -I, --interval=SECONDS       set the check interval to SECONDS (default is 1)
  -S, --status=NUMBER          set the expected COMMAND exit status to NUMBER (default is 0)
  -T, --timeout=SECONDS        set the timeout to SECONDS (0 for no timeout, default is 1)

Logging and info arguments:
  -P, --progress               show progress (default is 0)
  -H, --help                   print this help and exit
  -Q, --quiet                  be quiet
  -V, --version                display the version of wtfc and exit.

Examples:
  ./wtfc.sh -T 1 -S 0 ls /tmp                   Waits for 1 second for 'ls /tmp' to execute with exit status 0
  echo "ls /foo/bar" | ./wtfc.sh -T 2 -S 2      Waits for 2 seconds for 'ls /foo/bar' to execute with exit status 2

Inspiration

Inspired by wait-for-it as well as wait-for-command.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].