Just FYI.
I did something similar to this in a very old, long time ago, homework assignment.
I had a script that processed incoming data from the command line, which could come from another process. Then I had a CASE statement that called certain outside scripts depending on what the data was.
I believe in modular programming, so that you can remove or change one part of a large script, or several related scripts, without a major modification of the overall script. This group of scripts I created had 10 total scripts.
Even though you fixed your problem, try this in future scripting.
