The second way to write a script assumes the user is familiar with at least some kind of unix shell or script language. Using the utility "clicmd", commands can be passed to the Director. The exit code of clicmd reports on the success or failure of the command. This method provides the same flexibility that users have always had by being able to call Pegasus handlers, but rarely used (perhaps we are guilty of not providing adequate examples?) In fact, users can write a script that combines calls to handlers and clicmd. Use the second option if you need things like loops and conditionals.
Figure 6 is a flow chart outline the logic implemented in the C++ code of the Director program.