[GRASS-dev] Creating location from file problem

Hamish hamish_nospam at yahoo.com
Sun Oct 22 23:13:02 EDT 2006

Glynn Clements wrote:
> 1. Any GRASS program run in an xterm needs to use grass-run.sh, e.g.:
> 3. The xterm will close as soon as the command completes (whether it
> succeeds or fails). You can use the -hold switch to retain the xterm
> window after the command completes, but you should only do that for
> debugging; having to manually close the xterm window each time would
> be annoying in normal use. Alternatively, redirect stdout/stderr to a
> file, to catch any error messages.

grass-run.sh does:

# run command

if [ $EXIT_VAL -ne 0 ] ; then
   echo -e "\r"
   echo "ERROR: $1 exited abnormally. Press <enter> to continue."

exit $EXIT_VAL

so it should pause on exit, and the #1 suggestion above should solve
more than one problem.


More information about the grass-dev mailing list