[GRASSLIST:1989] Re: raster display problem in 5.7

Glynn Clements glynn.clements at virgin.net
Mon Dec 8 11:45:19 EST 2003


Markus Neteler wrote:

> > > > The OpenOSX version of GRASS has some changes specifically to allow
> > > > the use of the native MacOSX version of Tcl/Tk. These are available
> > > > from:
> > > >
> > > > http://grass.itc.it/grass5/binary/mac_os_x/OpenOSX-Additions-Grass 
> > > > -5.0.2.tar.bz2
> > > >
> > > > However, there have been some changes to tcltkgrass since 5.0.2, so I
> > > > have no idea whether those patches will work on more recent versions.
> > > 
> > > Thanks -- I got an important clue from the OpenOSX patches. Changing  
> > > the $GRASS_GUI case in Init.sh from:
> > > 
> > > "$GISBASE/scripts/d.m" &
> > > 
> > > to:
> > > 
> > > echo "$GISBASE/scripts/d.m" | sh &
> > > 
> > > Seems to have done the trick.
> > 
> > That should be OK so long as d.m doesn't spawn any interactive
> > commands (or it spawns them in their own xterm). However, it will
> > result in d.m having its stdin set to a file (i.e. the d.m script)
> > rather than to the terminal. Consequently, any commands which d.m
> > spawns will also have their stdin set to that file.
> 
> What about
> exec "$GISBASE/scripts/d.m" &

Technically, that's a syntax error; "exec" doesn't make sense in
conjunction with "&". Most shells appear to treat it as if you had
omitted the "exec". Which is fortunate; using "exec" is wrong in this
situation (without the "&", it would terminate the script).

-- 
Glynn Clements <glynn.clements at virgin.net>




More information about the grass-user mailing list