[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1. FreeM Invocation


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.1 Synopsis

 
$ ./mumps [OPTIONS...] [[-r <entryref>] | [--routine=<entryref>]]

When FreeM loads, it searches the system library in ‘../mlib/’ for the ^%SYS routine. When ^%SYS runs, it searches for a default namespace, activates it, configures the programmer-mode command prompt, prints a welcome message, and presents the programmer-mode prompt.

If no default namespace is configured, FreeM will prompt you to create a new namespace.

When -r or --routine are passed on the command line, FreeM will load and run the specified routine instead of ^%SYS, which means that routines launched in this manner will need to do their own namespace configuration using VIEW commands prior to accessing any routines or globals existing outside of the system library namespace.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.2 Command-Line Options

-h’, ‘--hardcopy

Enables hardcopy mode, echoing all output to a disk file. By default, this disk file is ‘/usr/tmp/hardcopy’, but can be changed with the following command:

 
USER> VIEW 13:"‘</path/to/hardcopy/file>’"
-f’, ‘--filter

Allows your MUMPS routines to be used as UNIX filters.

-n’, ‘--noclear

Disables automatic screen clearing when FreeM loads.

-s’, ‘--standard

Restricts the use of non-standard language features, including $Z... intrinsic special variables, $Z... intrinsic functions, Z... commands, as well as VIEW and $VIEW.

-i’, ‘--import

Causes your UNIX environment variables to be imported into FreeM’s local symbol table.

-r <entryref>’, ‘--routine=<entryref>

Causes <entryref> to be executed at load, instead of ^%SYS.


[ << ] [ >> ]           [Top] [Contents] [Index] [ ? ]

This document was generated by John P. Willis on March 13, 2020 using texi2html 1.82.