User Interface – command line 

The Framsticks command line interface is faster and simpler than the GUI (no overhead), and it is especially recommended for long-term experiments. It can also act as a server.

To learn about command-line parameters, run frams -?

Interactive command-line

To launch the interactive command-line program (which features its own shell), simply execute it. (For the Windows console, run frams.exe; for UNIX/Linux, run frams).

Enter help to see help; enter lm to see more options. See the frams.ini file, too. Note that you can access the class browser (it is also available in the Framsticks GUI).

To quit the program, enter qu, or the End-Of-File character (^Z for Windows, ^D for UNIX/Linux).

Command-line

You can use arguments, for example:

frams "lo e0.gen" "st 100000000" "sa last.gen" qu

means that you

  • run the program (all parameters are initialized to default values)
  • load e0.gen (a file with genotypes)
  • simulate 100 000 000 steps
  • save genotypes to last.gen
  • quit (qu)
Quotation marks are needed for parameters which contain spaces. Another example:

frams "lo exp_03.expt" "go"

means that you

  • run the program (all parameters are initialized to default values)
  • load exp_03.expt (a file with genotypes and simulation settings)
  • run the simulation until the Control-C (or Control-Break) is pressed

Thus, if the exp_03.expt activates the "autosave" option, then you will have periodic snapshot files of the simulation state. You can examine them with the GUI without stopping the command-line simulation. The simulation can be interrupted by pressing Control-C at any time.

Non-standard experiment definitions

If you are using an experiment definition different from standard.expdef, it is recommended to set it immediately, as the first argument on the command line. To set a non-standard expdef, use the "expdef" macro: frams "expdef myowndefinition" ...

Batch

You can use batch mode, for example:

frams < commands.txt

where the commands.txt file contains the commands you would enter interactively.

User-defined actions, scripts and macros

See the cliutils.ini file for more examples.