Motivation

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.

Goals

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

Execution

  • 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

Results

Further details

There are some "best practices" like https://stackoverflow.com/questions/7449772/how-to-retry-a-command-in-bash and https://unix.stackexchange.com/questions/82598/how-do-i-write-a-retry-logic-in-script-to-keep-retrying-to-run-it-upto-5-times . There are also existing commands, like https://github.com/minfrin/retry but it seems to unmaintained and even fails to build so maybe https://github.com/okurz/scripts/blob/master/retry is a better start.

Looking for hackers with the skills:

linux retry bash github coreutils packaging

This project is part of:

Hack Week 21

Activity

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

  • Comments

    Similar Projects

    Rust in linux kernel by dsterba

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


    Testing and adding GNU/Linux distributions on Uyuni by juliogonzalezgil

    Join the Gitter channel! [https://gitter.im/uy...


    Azure Active Directory for Linux by lramage

    Project Description

    [comment]: # (What ar...


    openSUSE on ZoL from OpenZFS project by jkohoutek

    Idea is to have SUSE system with OpenZFS as roo...


    Build Modern Unix Collection by hennevogel

    Get [modern-unix tools](https://github.com/ibra...


    openSUSE build supported by SUSE IT by vgrinco

    Project Description

    SUSE IT needs help fr...