nowfound

Life & fun · December 11, 2013

New unix utility "when"

run a command until a condition is met, then run another one! - apg/when

New unix utility "when" launched on December 11, 2013 with 20 votes, #420 of 927 launches that month and more than 75% of that year's launches. The site was still online in September 2026, 12 years on.

In plain words

When" is a Unix utility that executes a command repeatedly until a specified condition is met, then runs a subsequent command. Designed for developers and system administrators who need to automate conditional workflows, it simplifies scripting by eliminating the need for manual loop construction. The tool is particularly useful for monitoring processes, waiting for system states, or chaining dependent operations in shell scripts and automation tasks.

written from the facts on this page · September 2026

Does a similar job

all alternatives →
  • Witr – Explain why a process is running on your Linux systemDec 2025 · github.com · ▲526

    Hi HN, I built a small Linux CLI tool called witr (Why Is This Running?). The idea came from a situation most of us have hit: you log into a machine, see a process or port running, and immediately wonder why it exists, who started it, and what is keeping it alive right now. witr traces a process, service, or port back to its origin and responsibility chain and explains it in a way that’s quick to read, especially when you’re debugging under pressure. This is v0.1.0. It’s intentionally small and focused. Feedback, criticism, and edge cases are very welcome. Repo:…

  • Redo – Command line utility for quickly creating shell functions2022 · github.com · ▲124

    Redo is the ultimate tool to create reusable functions from your history in an interactive way - barthr/redo

  • A smarter Unix shell and scripting environment2023 · github.com · ▲142

    A smarter shell and scripting environment with advanced features designed for usability, safety and productivity (eg smarter DevOps tooling) - lmorg/murex

  • Using Rust to write shell-script like tasks2020 · github.com · ▲231

    Common rust command-line macros and utilities, to write shell-script like tasks in a clean, natural and rusty way - rust-shell-script/rust_cmd_lib

  • Prig – like AWK, but uses Go for “scripting”2022 · benhoyt.com · ▲77

    Describes Prig, which is for Processing Records In Go. It's a text processing tool like AWK, but it uses Go as the scripting language.

  • Run unknown shell script with a line-by-line confirmation prompt2021 · gist.github.com · ▲158

    Run a shell script with bash, line-by-line, prompted on each command. Useful for running unknown scripts or debugging. Not a secure substitute for understanding a script beforehand. - LICENSE

More life & fun this month

the category →

Source: Show HN post ↗

Launched alongside, December 2013

the whole month →