tips_and_tricks(1)     Grass User's Manual     tips_and_tricks(1)



   GGRRAASSSS GGIISS TTiippss aanndd TTrriicckkss
       [more to be added]

		     Error  messages: To avoid sending error mes-
		     sages  by	email,	generate  an  empty  file
		     called GIS_ERROR_LOG in your home directory:

			 cd $HOME

			 touch GIS_ERROR_LOG

		     Then   set    the	  environment	 variable
		     GRASS_STDERR  to 1 (or any other value), now
		     errors	will	 be	printed      into
		     $HOME/GIS_ERROR_LOG:

			 export GRASS_STDERR=1

		     or, depending on your shell

			 setenv GRASS_STDERR 1

		     Save  GRASS  commands: To store the commands
		     of a GRASS session,  use  the  UN*X  command
		     "script".

		     To   get  personal  BASH  shell  definitions
		     (aliases, color listing  option,  ...)  into
		     GRASS, store them in ~/.grass.bashrc

		     Monitor and print-to-file driver information

		     GRASS 5 Environment variables

		     Piping commands to a GRASS module:

		     _F_o_r _u_s_a_g_e _i_n _a  _s_c_r_i_p_t  _(_w_i_l_l  _g_e_n_e_r_a_t_e  _t_w_o
		     _m_a_p_s_)_:


		 r.mapcalc << EOF

		 foo = 3.14159

		 baz = sqrt(foo)

		 EOF

	      _F_o_r _u_s_a_g_e _f_r_o_m _a _t_e_x_t _f_i_l_e_:

		 cat > /tmp/textfile.asc <<EOF

		 foo = 3.14159

		 baz = sqrt(foo)

		 EOF

		 r.mapcalc < /tmp/textfile.asc


		     Data Import into GRASS

		     Data Export from GRASS



   OOtthheerr CCoommmmaannddss
       help  home,  database,  display, drivers, general, grid3d,
       imagery, misc, models, paint, photo,  postscript,  raster,
       scripts, sites, vector



GRASS 5.0				       tips_and_tricks(1)
