Skip to content

Instantly share code, notes, and snippets.

View jinesh-choksi's full-sized avatar

Jinesh Choksi jinesh-choksi

  • Algomi Limited
  • London, United Kingdom
View GitHub Profile
#!/usr/bin/env bash
#
# run_and_wait.sh
#
# Description:
# This script will run a specified command and will wait until a
# specified pattern is found in the specified log file or until
# a specified time out period expires.
#
# Returns 0 if pattern found within time out period and 1 otherwise.