Skip to content

Obvious Thoughts About IT

Tag: bash

Run the bash script until it fails

TL;DR

while ./myscript.sh; do :; done

The one-liner above runs the specified script/command until it exits with a non-zero exit code.

Example:

Run the pytest test until it fails:

while pytest -k test_check_routing; do :; done
Author MinrasPosted on 2018-06-27Categories UncategorizedTags bashLeave a comment on Run the bash script until it fails

Recent Posts

  • Clear Cache in Davinci Resolve
  • Installing Ubuntu as a second system on Mac Mini
  • Phonegap: You may not have the required environment or OS to build this project
  • Installing Robot Framework on [x]Ubuntu 15.04 + PyCharm plugin
  • Finalizing my first application in the Google Play Market
  • Run the bash script until it fails
  • Moving the blog to the new low-end cloud machine :)
  • Python docstring

Meta

  • Register
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Obvious Thoughts About IT Proudly powered by WordPress