User Tools

Site Tools


howtos:toolcoding:tool_shell_scripts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
howtos:toolcoding:tool_shell_scripts [2010/03/16 13:02]
shona.weldon
howtos:toolcoding:tool_shell_scripts [2011/05/13 12:27] (current)
shona.weldon
Line 1: Line 1:
 ====== TOOL Shell Scripts ====== ====== TOOL Shell Scripts ======
  
-Sometimes it is useful to use TOOL scripts in a "​sandbox"​ or "​scratchpad"​ manner—for experimentation,​ learning new tools, instant feedback, etc.—without the overhead of setting up a new model family and framework, and without the worry of breaking anything. ​ In this cases, TOOL shell scripts can be handy.+Sometimes it is useful to use TOOL scripts in a "​sandbox"​ or "​scratchpad"​ manner—for experimentation,​ learning new tools, instant feedback, etc.—without the overhead of setting up a new model family and framework, and without the worry of breaking anything. ​ In these cases, TOOL shell scripts can be handy.
  
 Using the TOOL shell application,​ which can be launched from the Programs menu under the whatIf grouping, gives you an interactive TOOL session which can be used to run tool commands directly or run a tool script. Using the TOOL shell application,​ which can be launched from the Programs menu under the whatIf grouping, gives you an interactive TOOL session which can be used to run tool commands directly or run a tool script.
Line 89: Line 89:
   * Login as your model account   * Login as your model account
   * Check where you are and move to the directory you created above:   * Check where you are and move to the directory you created above:
 +
 +**TIP:** In the interactive TOOL window hit <​Ctrl>​ and the up arrow key to get the previous command to save typing
 +
 <​code>​ <​code>​
 TOOL> where() TOOL> where()
Line 94: Line 97:
 TOOL> moveto("​the appropriate path to your testing directory"​) TOOL> moveto("​the appropriate path to your testing directory"​)
 </​code>​ </​code>​
- 
-**TIP:** In the interactive TOOL window hit <​Ctrl>​ and the up arrow key to get the previous command to save typing 
- 
   * Make sure your $informDir points to the model informants you wish to use.   * Make sure your $informDir points to the model informants you wish to use.
 <​code>​ <​code>​
Line 108: Line 108:
   * Run your script:   * Run your script:
 <​code>​ <​code>​
-TOOL> tool -l myScript.t+TOOL> tool myScript.t
 </​code>​ </​code>​
  
howtos/toolcoding/tool_shell_scripts.1268744573.txt.gz · Last modified: 2010/03/16 13:02 by shona.weldon