From SLangTNG

Drivers

Various ways of accessing the functionality of SLangTNG exist by joining the modules in different types of executables. The usage of these executables is shown in this section.

tngbatch

This driver provides a way to execute TNG on computers without graphics card. It, therefore, allows remote runs via network.

There is no dependency on X11 (or alternative graphics libraries) and it is attempted the limit the set of shared and dynamically linked libraries to a minimum. Therefore, tngbatch may be copied among all computers of the same platform without installing additional software.

basic usage
In order to execute a script, simply enter
mypath/tngbatch example.tng
where mypath is the path to the executable. This is required if the install directory of tngbatch is not included in the global PATH variable of the operating system (else it is empty or "./"). This call will execute example.tng and provides alphanumeric output as defined in the script.
trace mode
mypath/tngbatch -t example.tng 
will start tngbatch in trace mode. That is, all input lines which are accessed during the execution of the script will be printed to the terminal listing the filename of the current script, the corresponding line number and the contents of the current line. The trace mode is reasonably slower than the default mode.
quiet trace mode
mypath/tngbatch -qt example.tng 
will start tngbatch in quiet trace mode. Sometimes, it is not possible to track the correct position of an error in the script, for example, if a wrong argument is passed to a Lua function. In such cases, the search for the error may be laborious. As a remedy, the quiet trace mode has been introduced. Herein, tngbatch internally tracks the files and linenumbers of all called commands. On error, the location of the last called command can be displayed. Quiet tracing is a little slower than default mode.
log files
On UNIX(-like) systems, in order to pipe the output into a log file, simply enter
mypath/tngbatch example.tng > logfile.txt
Alternatively, type
mypath/tngbatch example.tng >> logfile.txt
if the new output should be appended to a possibly already existing logfile.txt.
This feature of the UNIX shell is particularly useful when starting remote connections. Assume being logged on to a UNIX(-like) system via telnet or ssh. Then you can start your script using
mypath/tngbatch example.tng > logfile.txt &
exit
and log out of the system. tngbatch will be executed by the terminal in the background even after logging out. Later on, one can log in and check if the job is still running or has finished and examine the output in the logfile.

TNGQT

This driver executes TNG with a simple graphical user interface based on Qt.

basic usage
In order to execute a script, simply enter
mypath/TNGQT example.tng
where mypath is the path to the executable. This is required if the install directory of TNGQT is not included in the global PATH variable of the operating system (else it is empty or "./"). This call will execute example.tng.
Information for users
Personal tools