From 3232e15a9e8f08cd0fe1165ddf017733704c0c20 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Fri, 1 Jun 2018 12:59:42 -0400 Subject: [PATCH] better instructions for rounder --- scripts/testing/rounder.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/scripts/testing/rounder.sh b/scripts/testing/rounder.sh index 3214ee68..797dfbb8 100644 --- a/scripts/testing/rounder.sh +++ b/scripts/testing/rounder.sh @@ -6,7 +6,19 @@ test_to_run="$1" if [ -z "$test_to_run" ]; then - echo "This script requires a test or program to run as the first parameter." + echo " +rounder: this script requires a test or program to run as the first parameter. + +the parameter can be an arbitrarily complex bash command as long as it's +escaped properly. for example, this command will check a directory size and +then sleep for 10 seconds: + + rounder '\du -s ~/a_folder_i_watch; sleep 10' + +rounder will run this check, snoozing in between checks, until the universe +ends or something intervenes. note that without the sleep, the check would +occur very rapidly and spew output. +" exit 1 fi -- 2.34.1