From f8ba9af8da1ce2570a50b7adadf67742829c71bf Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Thu, 30 May 2013 00:07:53 +0200 Subject: sup: output status messages to stderr Signed-off-by: Florian Pritz --- sup | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sup') diff --git a/sup b/sup index e277e53..3ec84f5 100755 --- a/sup +++ b/sup @@ -12,7 +12,7 @@ times_ran=0 cleanup() { if [ -n "$pid" ]; then - echo "killed... $pid" + echo "killed... $pid" >&2 kill $pid fi exit @@ -23,16 +23,16 @@ trap cleanup 2 15 while :; do times_ran=$(($times_ran+1)) if [ $times_ran -gt $delay_after ]; then - echo "sleeping for $delay seconds after $(($times_ran-1)) runs in $delay_reset_after seconds" + echo "sleeping for $delay seconds after $(($times_ran-1)) runs in $delay_reset_after seconds" >&2 sleep $delay fi time_started=`date +%s` - echo -n "running... " + echo -n "running... " >&2 $command & pid=$! - echo PID: $pid + echo PID: $pid >&2 wait $pid pid="" -- cgit v1.2.3-24-g4f1b