ÐÐÐСÐÐÐÐ This program is to be used in shell/perl/python scripts, so the author does not need to use the echo program. The advantage of g.message is that it formats messages just like other GRASS modules do and that its functionality is influenced by the GRASS_VERBOSE and GRASS_MESSAGE_FORMAT environment variables. The program can be used for standard informative messages as well as warnings (-w flag) and fatal errors (-e flag). For debugging purposes, the -d flag will cause g.message to print a debugging message at the given level. ÐÐ ÐÐÐЧÐÐÐЯ Messages containing "=" must use the full message= syntax so the parser doesn't get confused. Messges containing '!' and '$' must use single 'quotes' to avoid unwanted shell translation. If you want a long message (mutli-line) to be dealt with as a single paragraph, use a single call to g.message with text split in the script using the backslash as the last character. (In shell scripts don't close the "quote") A blank line may be obtained with: g.message "" Redundant whitespace will be stripped away. VERBOSITY LEVELS Controlled by the "GRASS_VERBOSE" environment variable. Typically this is set using the --quiet or --verbose command line options. * 0 - only errors and warnings are printed * 1 - progress messages are printed * 2 - all module messages are printed * 3 - additional verbose messages are printed DEBUG LEVELS Controlled by the "DEBUG" GRASS gisenv variable. (set with [1]g.gisenv) Recommended levels: * 1 - message is printed once or few times per module * 3 - each row (raster) or line (vector) * 5 - each cell (raster) or point (vector) СÐ. ТÐÐÐÐ [2]GRASS variables and environment variables, [3]g.gisenv, [4]g.parser ÐÐТÐÐ Jachym Cepicky Last changed: $Date: 2007-05-29 22:42:20 -0500 (ÐÑ, 29 май 2007) $ ÐвÑÐ¾Ñ Ð¿ÐµÑевода References 1. file://localhost/root/tmp/2/fin/g.gisenv.html 2. file://localhost/root/tmp/2/fin/variables.html 3. file://localhost/root/tmp/2/fin/g.gisenv.html 4. file://localhost/root/tmp/2/fin/g.parser.html