From: Chris Koeritz Date: Wed, 22 Apr 2015 12:45:21 +0000 (-0400) Subject: minor tweaks. X-Git-Tag: 2.140.90~647 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=0e939702f5e995f0433fad7e9bbb275800d633ec;p=feisty_meow.git minor tweaks. --- diff --git a/scripts/processes/process_manager.sh b/scripts/processes/process_manager.sh index b9497d8a..548f2593 100644 --- a/scripts/processes/process_manager.sh +++ b/scripts/processes/process_manager.sh @@ -6,13 +6,12 @@ # Author : Chris Koeritz # Rights : Copyright (C) 2015-$now by Author # -# Purpose: +# Purpose: # -# Turns Unix format text files into DOS format text files. -# relies on the built-in process management to run a bunch of processes -# in the background, but will limit total number running to a maximum. -# demonstration method at the end of the file shows how to use the -# process managing methods. +# Relies on the built-in process management in bash to run a bunch of +# processes in the background, but will limit total number running to a +# maximum count. There is a demonstration method at the end of the file +# that shows how to use the process management functions. # ############## # This script is free software; you can modify/redistribute it under the terms @@ -20,15 +19,6 @@ # Feel free to send updates to: [ fred@gruntose.com ] ############## -# process manager helper methods for bash. -# -# relies on the built-in process management to run a bunch of processes -# in the background, but will limit total number running to a maximum. -# demonstration method at the end of the file shows how to use the -# process managing methods. -# -# by chris koeritz - #hmmm: revisions desired someday: # + allow number of max processes to be passed in. # + @@ -65,7 +55,7 @@ function nechung() '$BINDIR/nechung' } -function login_on_xcg() +function sum_dir() { start_background_action \ 'echo "summing directory output coming up..."' \ @@ -100,7 +90,7 @@ launcher_demonstrator() case $which in 0) take_inventory;; 1) nechung;; - 2) login_on_xcg;; + 2) sum_dir;; esac # we have reached the limit on processes and need to wait for a few, defined by