Overview

Definition

A Flux command file is a text file, which contains one or more commands in the PyFlux language. It uses the filename extension *.py.

Use

A command file simplifies monotonous or repetitive tasks.

There are different levels of use:

  • the first level consists in saving and then replaying a «spied» sequence of Flux commands
  • the second level consists in saving and then improving the «spied» sequence of Flux commands by implementing loops and functions
  • the third level consists in directly writing the code in the programming language

General operation

The more general operating mode is presented in the table below.

Stage Description Context
1 Saving in a command file a sequence of Flux commands Flux
2 Modification of the previous command file by writing the code in the programming language

Flux (python editor) or

Text editor

3 Execution of a command file Flux

Location

The command files can be stored in any directory chosen by the user. The default command file created when the Flux program running is stored in the directory of current project.