From cbdb05a9092fff39ccdf7fb1d7363dadd3e7ed0f Mon Sep 17 00:00:00 2001 From: glenda Date: Fri, 7 Oct 2022 12:46:07 +0000 Subject: Demo progress bar --- APLDemo | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'APLDemo') diff --git a/APLDemo b/APLDemo index 1247140..3480bac 100755 --- a/APLDemo +++ b/APLDemo @@ -3,6 +3,7 @@ winid=`{grep -e '-apl' /mnt/acme/index | awk '{print $1}' } if(~ $#winid 0){ kill apl | rc + echo 0 `{cat $1 | wc -l} >> /mnt/apldemo/data win apl & sleep 1 winid=`{grep -e '-apl' /mnt/acme/index | awk '{print $1}' } @@ -20,4 +21,4 @@ next=`{echo $current + 1 | hoc} echo $next > $state cat $1 | awk 'NR=='$current > /mnt/acme/$winid/body - +echo $current `{cat $1 | wc -l} >> /mnt/apldemo/data -- cgit v1.2.3