When starting the GiD program from a shell or script it is possible to supply several options in the same command line.
With
gid -help
the program will list the possible command line options.
Command line syntax:
gid [-b[{+/-}g][{+/-}i][{+/-}w] batchfile] [filename] [-h] [-p problem] [-e cmd] [-n] [-n2] [-c][-c2]
All options and filename are optional. filename is the name of a problem to be opened (the .gid extension is optional).
Options are:
-
-b batchfile
executes batch_file as a script file (see Batch file
).
-
+/- g
Enable/Disable Graphics (if -g, GiD does not redraw until the batch file has finished).
-
+/- i
Enable/Disable GraphInput (enable or disable peripherals while the batch file is being executed: mouse, keyboard, etc.).
-
+/- w
Enable/Disable Windows (GiD displays - or does not display - windows which require interaction with the user).
-
-h
shows GiD's command line arguments.
-
-p problem
loads problem as the type of the problem to be used for a new project.
-
-e cmd
can continue until the end of the line. It executes anything as if it were a group of commands entered into GiD.
-
-n
runs the program without any window. It is most useful when used with the option batchfile.
-
-n2
runs the program without any window but the Tk
library is loaded. This option is useful if you use Tcl commands in a batch file.
-
-c conffile
takes the window configuration from conffile. (See Save window configuration
for information about window configuration).
-
-c2 inifile
to use an alternative user configuration file, instead the default 'gid.ini' (to not share this file between problemtypes or versions)
-
-openglconfig
(Only for Windows
): this allows you to choose between the accelerated OpenGL, if present, or the generic implementation, if you experience troubles using the accelerated libraries of the graphics card.
Other useful options are:
gid -compress [ -123456789ad] file_name_in file_name_out
in order to compress (gzip) a file, e.g. to compress '.dat' files or new postprocess formatted data files.
And:
gid [ -PostBinaryFormat { 1.0 / 1.1}] -PostResultsToBinary file_in file_out
in order to transform ASCII results files into compressed binary ones. You can select whether to use the binary format 1.0 or 1.1. The default format (recommended) is 1.1.