Executing programs with fglrun

The fglrun command is used to execute compiled programs.

After modules and forms have been compiled, a program can be executed with the fglrun tool:
fglrun myprogram

Before execution, make sure that all required environment variables are properly defined, such as FGLPROFILE, FGLGUI, FGLSERVER, FGLLDPATH, LANG/LC_ALL.

To display program forms in graphical mode, the GUI front-end must run on the workstation defined by the FGLSERVER environment variable, and all network security components (i.e. firewalls) must allow TCP connections on the port defined by this environment variable.

Verify the database client environment settings, and check that the database server is running and can be accessed, for example by using a database vendor specific tool to execute SQL commands.

On the application server host, enter the following command in the shell:

It's not mandatory to build a .42r program, you can also start a .42m module if the MAIN is defined in that module.

It is also possible to start programs on the application server from the workstation where the GUI client resides, by using for example rlogin or ssh network protocols. This is actually the typical way to start applications in a production environment. For more details, see front-end manuals.