Waits until the exit code of a program is zero

Related tags

Utilities waitz
Overview

Waitz

A rust utility to wait that a program exits with 0.

You need to wait for something to start up and don't know when it finishes? You want to chain some other commands after it? You want to run a bunch of commands and drink a coffee? Than this is a tool for you.

I initially wrote it to start docker and run some processes after it, but you can do way more with it, like waiting for a specific URL to become available after booting up a server in the background or anything else.

  • waitz docker ps && npm run
    You might also like...
    A bare metal STM32F103C8T6/STM32F103 MCU program written in pure Rust
    A bare metal STM32F103C8T6/STM32F103 MCU program written in pure Rust

    A bare metal (register level) STM32F103C8T6/STM32F103 MCU program written in pure Rust without any IDE, SDK, HAL or library, and no assembly code, the only tool required is the Rust compiler.

    Rust program to monitor Windows 10 Registry keys for changes or modifications.

    RegMon This Rust program monitors changes to multiple registry keys in Windows 10 and writes the changes to a text file. It also periodically sends a

    Token management program (vesting and mining) implemented in Anchor
    Token management program (vesting and mining) implemented in Anchor

    Deep Dive into Anchor by Implementing Token Management Program Author: @ironaddicteddog, @emersonliuuu [Updated at 2022.5.21] You can find the full co

    Migrate C code to Rust
    Migrate C code to Rust

    C2Rust helps you migrate C99-compliant code to Rust. The translator (or transpiler) produces unsafe Rust code that closely mirrors the input C code. T

    Mix async code with CPU-heavy thread pools using Tokio + Rayon

    tokio-rayon Mix async code with CPU-heavy thread pools using Tokio + Rayon Resources Documentation crates.io TL;DR Sometimes, you're doing async stuff

    Minimal, flexible framework for implementing solutions to Advent of Code in Rust

    This is advent_of_code_traits, a minimal, flexible framework for implementing solutions to Advent of Code in Rust.

    Sample code for compute shader 101 training

    Sample code for Compute Shader 101 This repo contains sample code to help you get started writing applications using compute shaders.

    Detect if code is running inside a virtual machine (x86 and x86-64 only).

    inside-vm Detect if code is running inside a virtual machine. Only works on x86 and x86-64. How does it work Measure average cpu cycles when calling c

    Doku is a framework for building documentation with code-as-data methodology in mind.
    Doku is a framework for building documentation with code-as-data methodology in mind.

    Doku is a framework for building documentation with code-as-data methodology in mind. Say goodbye to stale, hand-written documentation - with D

    Comments
    • Add option to print the output of the command to stdout/stderr

      Add option to print the output of the command to stdout/stderr

      Currently, it is not possible to see the output of the command you've executed, you only know if it was successful.

      It can sometimes be useful to see the output of the executed command i.e. I sometimes execute waitz docker ps && docker ps to wait until the docker engine is started on mac and then immediately see what containers where started automatically.

      enhancement 
      opened by mstruebing 0
    • feat: unify code paths for the `retry` and `no_retry` paths

      feat: unify code paths for the `retry` and `no_retry` paths

      This change will still execute is_successful exactly once on the no_retry path without executing the body of the while loop and keep the same semantic for the retry path.

      opened by vbrandl 0
    Releases(0.3.0)
Owner
Max Strübing
Max Strübing
wait-for-pid -- Wait for processes to exit

wait-for-pid -- Wait for processes to exit wait-for-pid PID is similar to the bash built-in command wait, except it works even when the processes star

Tv 2 Feb 2, 2022
Membrane is an opinionated crate that generates a Dart package from a Rust library. Extremely fast performance with strict typing and zero copy returns over the FFI boundary via bincode.

Membrane is an opinionated crate that generates a Dart package from a Rust library. Extremely fast performance with strict typing and zero copy returns over the FFI boundary via bincode.

Jerel Unruh 70 Dec 13, 2022
A program written in pure Rust to query music info from mpd and display it in a notification.

musinfo A program written in pure Rust to query music info from mpd and display it in a notification. Note: Cover art is expected to be placed at /tmp

Cpt.Howdy 10 Aug 16, 2022
Wait Service is a pure rust program to test and wait on the availability of a service.

Wait Service Wait Service is a pure rust program to test and wait on the availability of a service.

Magic Len (Ron Li) 3 Jan 18, 2022
A program written in Rust, that allows the user to find the current location of the International Space Station and see it on a map.

ISS Location ViewFinder A program written in Rust, that allows the user to find the current location of the International Space Station and see it on

Suvaditya Mukherjee 2 Nov 8, 2021
✨ Safe, global singletons initialized at program start

✨ magic_static Safe, global singletons initialized at program start. Usage Simply add magic_static as a dependency in your Cargo.toml to get started:

William 5 Nov 8, 2022
Soufflé is a variant of Datalog for tool designers crafting analyses in Horn clauses. Soufflé synthesizes a native parallel C++ program from a logic specification.

Welcome! This is the official repository for the Soufflé language project. The Soufflé language is similar to Datalog (but has terms known as records)

The Soufflé Project 672 Dec 29, 2022
Noir Pay - Fork of the Light Protocol Program for local testing / optimisation.

Noir Pay v0 Built on Light Protocol Noir Pay will be directly built ontop of the Light Protocol SDK and provide users with a beautifully simple privat

0xNico 1 Feb 12, 2022
Program a Raspberry Pi Pico with pure Rust

pi-pico-rs Program a Raspberry Pi Pico with pure Rust. Get Started Install the latest version of Rust and the thumbv6m-none-eabi target. This is the p

Gerald Nash 5 Jul 29, 2022
A simple program for handling Ethiopian calendar dates.

Mek’ut’erīya A simple program for handling Ethiopian calendar dates. Installation cargo install --git https://github.com/frectonz/mek-ut-er-ya If you

Fraol Lemecha 15 Dec 20, 2022