User Tools

Site Tools


jvs:fscan:manual:chapter2:run

This is an old revision of the document!


fScan Reference Manual, Chapter 2 (CmdLineOptions): run

Run -- Execute a series of fScan interactive commands

usage:
-run flag string
-run
:

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.

FLAG:

  • 1 - interpret STR as a sequence of interactive commands (default). This sets peekstr to STR.
  • 2 - run contents of file STR as a sequence of interactive commands
  • 3 - STR is the name of a menu; ITEM is the number of an item within that menu (1=first). If STRING=“funckey”, ITEM is Funckey number. The menu item is run as though it had been selected interactively. Multiple pairs of [MENUNAME ITEM] can be combined in the same '-run 3' command.
  • 4 - set contents of file STR to run when fScan terminates (sets quitstr)
  • 5 - run STR as a synchronous fScan shell command

Examples:

  fscan infile -e + 100 : -e x 4 -D           # process image addition and multiplication separately (show both results) 
  fscan infile -e + 100   -e x 4 -D           # addition and multiplication will be done together (one result window)
  fscan infile -run "3C4d" -D                 # load data set, switch to 3-plane view and reduce intensity
  fscan infile -run 1 myview -D               # load data set and run interactive commands in file "myview"

Note:
RUN is a command-line command designed for running sequences of interactive fScan commands.
OPTIONS is a command-line command designed for running sequences of command-line commands.
The 'G' interactive command is designed to run sequences of command-line commands interactively.
Combining and embedding RUN, OPTIONS, and 'G' commands provides a lot of programming flexibility, but can be a bit confusing.

See Also:
EXEC, OPTIONS, GO

fScan Home, fScan Manual, CmdLineOptions, Manual Help

jvs/fscan/manual/chapter2/run.1324406929.txt.gz · Last modified: 2014/08/04 16:03 (external edit)