When automating tasks often the requirement comes up to retry commands, for example when network connections are involved and commands do not return successfully immediately or if resources are temporarily not available. Sometimes a simple for-loop in bash is sufficient. Sometimes it is necessary to use additional waiting between retries, sometimes timeouts are desired. Getting all those combinations right can be tedious and error-prone so a generic "retry" command should be available in usual environments so we should provide a retry command to openSUSE distributions.


  • G1: A "retry" command is submitted to openSUSE:Factory as part of a package


  • Research existing approaches and distributions
  • Package existing solution or develop alternative on your own
  • Submit package to a devel repository and then openSUSE:Factory and work on feedback


Further details

There are some "best practices" like and . There are also existing commands, like but it seems to unmaintained and even fails to build so maybe is a better start.

Looking for hackers with the skills:

linux retry bash github coreutils packaging

This project is part of:

Hack Week 21


  • 9 months ago: cdywan liked this project.
  • 9 months ago: fbonazzi liked this project.
  • 9 months ago: maritawerner liked this project.
  • 10 months ago: ph03nix liked this project.
  • 10 months ago: okurz added keyword "bash" to this project.
  • 10 months ago: okurz added keyword "github" to this project.
  • 10 months ago: okurz added keyword "coreutils" to this project.
  • 10 months ago: okurz added keyword "packaging" to this project.
  • 10 months ago: okurz added keyword "linux" to this project.
  • 10 months ago: okurz added keyword "retry" to this project.
  • 10 months ago: okurz started this project.
  • 10 months ago: okurz originated this project.

  • Comments

    • okurz
      10 months ago by okurz | Reply

      Couldn't wait until hackweek so made it a small weekend project :D Based on what I had in I created including proper README, license, tests, CI, spec file for a package. An according package in OBS setup to be triggered from github following

    • minfrin
      3 months ago by minfrin | Reply

      While alternative implementations are great, please be careful with naming. The “retry” tool is already out the box in Debian, Ubuntu, and Nix, and in the queue for EPEL. It is currently available for Suse via copr. If you create a different tool with the same name but different command line options into opensuse it creates chaos for everyone.

      • okurz
        about 2 months ago by okurz | Reply

        Thanks for the comment. I researched earlier if I could find existing solutions in various distributions and I had not found the applications you mentioned at that time. Regarding copr, do you mean ?

    Similar Projects

    Encrypted volumes in elemental-toolkit by flonnegren

    [comment]: # (Please use the project descriptio...

    Improve Qualcomm SOC msm8994/msm8992 kernel mainline support by pvorel

    Project Description

    Due previous hackweek...

    Authenticated hashes for BTRFS by dsterba

    Project Description

    Implement a checksum ...

    Testing and adding GNU/Linux distributions on Uyuni by juliogonzalezgil

    Join the Gitter channel! [

    Expanding e2e tests on Windows self-hosted runners via CI by iguimaraes


    • Documented all necessary s...

    obs_scm_demo by smithfarm

    Project Description

    For a long time, I ha...

    OSSelot collaboration on legal reviews of community packages by lkocman

    [comment]: # (Please use the project descriptio...

    Give some love to spec-cleaner by kstreitova

    Project Description

    spec-cleaner is an open...

    Update Haskell ecosystem in Tumbleweed to GHC-9.4.4 by psimons

    [comment]: # (Please use the project descriptio...

    Dictu Language by bdowns328

    [comment]: # (Please use the project descriptio...