This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
jvs:fscan:manual:chapter2:run [2011/08/02 18:33] voyvodic |
jvs:fscan:manual:chapter2:run [2023/02/23 18:43] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
**fScan Reference Manual, Chapter 2 (CmdLineOptions): | **fScan Reference Manual, Chapter 2 (CmdLineOptions): | ||
- | ===== Run -- ===== | + | ===== Run -- Execute a series of fScan interactive commands |
- | **usage: -run flag string** | + | **usage:**\\ |
+ | %%-run mode [flag] string%%\\ | ||
+ | | ||
+ | %%:%% | ||
===== ===== | ===== ===== | ||
- | With no arguments, this command just forces everything before it in the command line to be processed before processing other options. | + | With no arguments, this command just forces everything before it in the command line to be processed before processing other options. A colon (surrounded by blank space) is a shorthand equivalent to the **-run** command with no arguments. It simply forces execution of all command options preceding it. |
With arguments, this loads interactive command strings. | With arguments, this loads interactive command strings. | ||
- | FLAG: | + | MODE: |
- | * 1 - set [[jvs: | + | * 1 - interpret STRING as a sequence of interactive commands (default). This sets [[jvs: |
- | * 2 - run file STR | + | * 2 - run contents of file STRING as a sequence of interactive commands |
- | * 3 - set [[jvs: | + | * 3 - STRING is the name of a menu; ITEM is the number of an item within that menu (1=first). If STRING=" |
- | * 4 - run file STR | + | * 4 - set contents of file STRING to run when fScan terminates (sets [[jvs: |
- | * 5 - run STR as synchronous | + | * 5 - run STRING and following arguments as an [[jvs: |
+ | * 6 - run contents of file STRING as a sequence of fScan command-line commands | ||
+ | * 7 - run STRING | ||
+ | |||
+ | Examples: | ||
+ | < | ||
+ | fscan infile -e + 100 -e x 4 -D # add and multiply together (one result window) | ||
+ | fscan infile -e + 100 : -e x 4 -D # add and multiply separately (show both results) | ||
+ | fscan infile -run " | ||
+ | fscan infile -run 2 myview -D # load data and run interactive commands in file " | ||
+ | fscan infile -run 3 display 3 -D # load data and run icon 3 from taskbar ' | ||
+ | fscan -run 5 run_fslmc infile 9 -v 0 # run the shell script as: "csh run_fslmc INFILE 9" | ||
+ | </ | ||
+ | **Note: | ||
+ | RUN is a command-line command designed for running sequences of interactive fScan commands.\\ | ||
+ | [[jvs: | ||
+ | The ' | ||
+ | Combining and embedding RUN, OPTIONS, and ' | ||
+ | When in doubt, insert ':' | ||
**See Also:**\\ | **See Also:**\\ | ||
- | [[jvs: | + | [[jvs: |
+ | [[jvs: | ||
+ | [[jvs: | ||
[[jvs: | [[jvs: |