multi-g.manuals; concurrency locking

I assume you're entering commands in an 'xterm' window. You start GRASS in
that window with 'grass4.1', enter the directory stuff in the entry mask,
and press ESCAPE to leave the mask. You can now enter commands such as
'g.manual'. All you have to do now is enter

    xterm &

to start a *second* 'xterm' window as a background subprocess of your
ongoing GRASS session. In the second xterm window (or the first, it
doesn't matter), you can now start 'g.manual' and just leave it running.
You can even start a third xterm window to run g.help permanently during
your session.

Isn't Unix neat? %^)

Thanks for your suggestions, Mark. Unfortunately, it doesn't
work for me! The new xterm does NOT inherit all the settings of the
parent window - in particular, it doesn't keep all of the PATH environment
variables - example

old window:

GRASS 4.1 > printenv | grep PATH
FONTPATH=/usr/openwin/lib/fonts
HELPPATH=/usr/openwin/lib/locale:/usr/openwin/lib/help
LD_LIBRARY_PATH=/usr/openwin/lib:/usr/lib:/usr/lib/f77:/usr/local/lib:/usr/local/lib/X11:/usr/local/lib/intrepid:/sci4/ermapper/lib/sun4
MANPATH=/usr/local/lang/man:/usr/openwin/share/man:/usr/lib/X11/man:/usr/man:/usr/newsprint/man:/usr/local/man
PATH=/home/sci2/newgrass/grass4.1/bin:/home/sci2/newgrass/grass4.1/scripts:/home/sci2/newgrass/grass4.1/garden/bin:/usr/openwin/bin:/usr/openwin/bin/xview:/usr/openwin/demo:/usr/local:/usr/local/bin:/usr/ucb:/home/sci2/simon/bin:/home/sci2/simon/scripts:/home/sci2/simon/grass/scripts:/usr/bin:/bin:.:/usr/newsprint/bin:/usr/local/X11/bin:/sci4/ermapper:/usr/local/lang:/usr/local/bin/pbm
XFILESEARCHPATH=/usr/openwin/lib/%T/%N%S
XPATH=/usr/local/X11

new window:

cerberus% printenv | grep PATH
FONTPATH=/usr/openwin/lib/fonts
HELPPATH=/usr/openwin/lib/locale:/usr/openwin/lib/help
LD_LIBRARY_PATH=/usr/openwin/lib:/usr/lib:/usr/lib/f77:/usr/local/lib:/usr/local/lib/X11:/usr/local/lib/intrepid:/sci4/ermapper/lib/sun4
MANPATH=/usr/local/lang/man:/usr/openwin/share/man:/usr/lib/X11/man:/usr/man:/usr/newsprint/man:/usr/local/man:/home/sci2/newgrass/man
PATH=/usr/openwin/bin:/usr/openwin/bin/xview:/usr/openwin/demo:/usr/local:/usr/local/bin:/usr/ucb:/home/sci2/simon/bin:/home/sci2/simon/scripts:/home/sci2/simon/grass/scripts:/usr/bin:/bin:.:/usr/newsprint/bin:/usr/local/X11/bin:/sci4/ermapper:/usr/local/lang:/usr/local/bin/pbm
XFILESEARCHPATH=/usr/openwin/lib/%T/%N%S
XPATH=/usr/local/X11

so it doesn't know g.manual.
How to fix this? I also tried adding the path to the grass manuals
to my MANPATH (see second example above), expecting to be able to
use standard UNIX "man", but this also didn't work.

Also: what is the best way to get GRASS to read my .cshrc
so that I keep my favorite aliases?

Thanks

Simon Cox

----
___________________________________________________
      __ L Dr Simon Cox
   ,~' L_|\ VIEPS Department of Earth Sciences,
,-' \ Monash University, Clayton Vic 3168
( soon \ Australia
X<~~~~~~~~~ / Phone +61 3 905 5762
L,~' "\_x/ Fax +61 3 905 5062
           u simon@artemis.earth.monash.edu.au
___________________________________________________

On Sun, 27 Mar 1994, Simon Cox wrote:

Thanks for your suggestions, Mark. Unfortunately, it doesn't
work for me! The new xterm does NOT inherit all the settings of the
parent window - in particular, it doesn't keep all of the PATH environment
variables - example

This is an effect of the way the shell running in the xterm is invoked,
not of the xterm process itself. The only suggestion I can think of is for
you to see if your xterm will let you force its shell to be invoked as a
subshell instead of a login shell. If for some reason the second shell is
being invoked as a login shell, your environment variables are probably
all getting re-initialized -- thus losing the settings from GIS.sh. My
exterm lets you force subshell invocation with a '+ls' flag on the command
line ('-ls' means to invoke the shell as a login-shell).

I use bash, not csh, so there may be something csh-specific that I'm not
aware of causing your problem.

-- Mark

--------------------------------------------------------------------
Mark P. Line Phone: +1-206-733-6040
Open Pathways Fax: +1-206-733-6040
P.O. Box F Email: markline@henson.cc.wwu.edu
Bellingham, WA 98227-0296
--------------------------------------------------------------------