Re: [GRASS-user] When starting grass in text mode,why... ? (Question of minor importance)

2008-01-17 Thread nikos . alexandris
Very LONG Post!

[EMAIL PROTECTED]:/usr/local/grass-6.3.0RC4/etc$ grass63 -text
+ trap echo 'User break!' ; exit 2 3 15
+ GRASS_PERL=/usr/bin/perl
+ export GRASS_PERL
+ GRASS_SH=/bin/sh
+ export GRASS_SH
+ GRASS_VERSION=6.3.0RC4
+ export GRASS_VERSION
+ CMD_NAME=grass63
+ uname -s
+ SYSTEM=Linux
+ GRASS_GUI=text
+ shift
+ GIS_LOCK=4836
+ export GIS_LOCK
+ GISRCRC=/home/nik/.grassrc6
+ [  ]
+ pwd
+ PWD=/usr/local/grass-6.3.0RC4/etc
+ whoami
+ USER=nik
+ tmp=/tmp/grass6-nik-4836
+ umask 077
+ mkdir /tmp/grass6-nik-4836
+ GISRC=/tmp/grass6-nik-4836/gisrc
+ export GISRC
+ cat /home/nik/.grassrc6
+ grep UNKNOWN
+ [ 1 -eq 0 ]
+ [ -f /home/nik/.grassrc6 ]
+ cp /home/nik/.grassrc6 /tmp/grass6-nik-4836/gisrc
+ [ 0 -eq 1 ]
+ [ ! text ]
+ [ text = gui ]
+ ETC=/usr/local/grass-6.3.0RC4/etc
+ [  ]
+ [  ]
+ echo en_GB.UTF-8
+ sed s/\(..\)\(.*\)/\1/
+ LCL=en
+ [ -n  ]
+
PATH=/usr/local/grass-6.3.0RC4/bin:/usr/local/grass-6.3.0RC4/scripts:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
+ export PATH
+ [ !  ]
+ LD_LIBRARY_PATH=/usr/local/grass-6.3.0RC4/lib
+ export LD_LIBRARY_PATH
+ GRASS_LD_LIBRARY_PATH=/usr/local/grass-6.3.0RC4/lib
+ export GRASS_LD_LIBRARY_PATH
+ [ !  ]
+ [ -x /bin/more ]
+ GRASS_PAGER=more
+ export GRASS_PAGER
+ [ !  ]
+ GRASS_TCLSH=tclsh
+ export GRASS_TCLSH
+ [ !  ]
+ GRASS_WISH=wish
+ export GRASS_WISH
+ [ !  ]
+ GRASS_PYTHON=python
+ export GRASS_PYTHON
+ [ !  ]
+ [  ]
+ [  -o  ]
+ echo
/usr/local/grass-6.3.0RC4/bin:/usr/local/grass-6.3.0RC4/scripts:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
+ sed s/^:/.:/
s/::/:.:/g
s/:$/:./
s/:/ /g
+ [ -f /usr/local/grass-6.3.0RC4/bin/htmlview ]
+ [ -f /usr/local/grass-6.3.0RC4/bin/konqueror ]
+ [ -f /usr/local/grass-6.3.0RC4/bin/mozilla ]
+ [ -f /usr/local/grass-6.3.0RC4/bin/mozilla-firefox ]
+ [ -f /usr/local/grass-6.3.0RC4/bin/opera ]
+ [ -f /usr/local/grass-6.3.0RC4/bin/netscape ]
+ [ -f /usr/local/grass-6.3.0RC4/bin/dillo ]
+ [ -f /usr/local/grass-6.3.0RC4/scripts/htmlview ]
+ [ -f /usr/local/grass-6.3.0RC4/scripts/konqueror ]
+ [ -f /usr/local/grass-6.3.0RC4/scripts/mozilla ]
+ [ -f /usr/local/grass-6.3.0RC4/scripts/mozilla-firefox ]
+ [ -f /usr/local/grass-6.3.0RC4/scripts/opera ]
+ [ -f /usr/local/grass-6.3.0RC4/scripts/netscape ]
+ [ -f /usr/local/grass-6.3.0RC4/scripts/dillo ]
+ [ -f /usr/local/sbin/htmlview ]
+ [ -f /usr/local/sbin/konqueror ]
+ [ -f /usr/local/sbin/mozilla ]
+ [ -f /usr/local/sbin/mozilla-firefox ]
+ [ -f /usr/local/sbin/opera ]
+ [ -f /usr/local/sbin/netscape ]
+ [ -f /usr/local/sbin/dillo ]
+ [ -f /usr/local/bin/htmlview ]
+ [ -f /usr/local/bin/konqueror ]
+ [ -f /usr/local/bin/mozilla ]
+ [ -f /usr/local/bin/mozilla-firefox ]
+ [ -f /usr/local/bin/opera ]
+ [ -f /usr/local/bin/netscape ]
+ [ -f /usr/local/bin/dillo ]
+ [ -f /usr/sbin/htmlview ]
+ [ -f /usr/sbin/konqueror ]
+ [ -f /usr/sbin/mozilla ]
+ [ -f /usr/sbin/mozilla-firefox ]
+ [ -f /usr/sbin/opera ]
+ [ -f /usr/sbin/netscape ]
+ [ -f /usr/sbin/dillo ]
+ [ -f /usr/bin/htmlview ]
+ [ -f /usr/bin/konqueror ]
+ [ -f /usr/bin/mozilla ]
+ [ -f /usr/bin/mozilla-firefox ]
+ [ -f /usr/bin/opera ]
+ GRASS_HTML_BROWSER=opera
+ break
+ [ ! opera ]
+ export GRASS_HTML_BROWSER
+ [  = arm ]
+ [ !  ]
+ GRASS_GNUPLOT=gnuplot -persist
+ export GRASS_GNUPLOT
+ [ !  ]
+ GRASS_PROJSHARE=/usr/local/share/proj
+ export GRASS_PROJSHARE
+ [ ! -f /tmp/grass6-nik-4836/gisrc ]
+ echo Cleaning up temporary files.
Cleaning up temporary files.
+ /usr/local/grass-6.3.0RC4/etc/clean_temp
+ echo Starting GRASS ...
Starting GRASS ...
+ [ :0.1 -o  ]
+ [ text = wx ]
+ [ text = tcltk ]
+ [ text = gis.m ]
+ [ text = d.m ]
+ [ 0 = 0 ]
+ TCLTKGRASSBASE=/usr/local/grass-6.3.0RC4/etc
+ WXPYTHONGRASSBASE=/usr/local/grass-6.3.0RC4/etc/wx
+ [ -f /tmp/grass6-nik-4836/gisrc ]
+ awk $1 !~ /GRASS_GUI/ {print} /tmp/grass6-nik-4836/gisrc
+ echo GRASS_GUI: text
+ mv -f /tmp/grass6-nik-4836/gisrc.4836
/tmp/grass6-nik-4836/gisrc
+ [ !  ]
+ LOCATION=
+ [ !  ]
+ /usr/local/grass-6.3.0RC4/etc/set_data

+ g.gisenv GISDBASE
+ GISDBASE=/home/nik/GeoData/Unsorted
+ g.gisenv LOCATION_NAME
+ LOCATION_NAME=CH1903_LV03
+ g.gisenv MAPSET
+ MAPSET=ForStefan
+ [ -z /home/nik/GeoData/Unsorted ]
+ [ -z CH1903_LV03 ]
+ [ -z ForStefan ]
+ LOCATION=/home/nik/GeoData/Unsorted/CH1903_LV03/ForStefan
+
lockfile=/home/nik/GeoData/Unsorted/CH1903_LV03/ForStefan/.gislock
+ /usr/local/grass-6.3.0RC4/etc/lock
/home/nik/GeoData/Unsorted/CH1903_LV03/ForStefan/.gislock
4836
+ [  ]
+ trap  2 3 15
+ [  ]
+ basename /bin/bash
+ sh=bash
+ shellname=Bash Shell
+ [ ! -x /bin/bash ]
+ [ -n  ]
+ echo GRASS GUI should be text
GRASS GUI should be text
+ [  ]
+ [ -z  ]
+ tput clear

























+ cat
  __  ___   _____
 / / __ \/   | / ___/ ___/   / /  _/ ___/
/ / __/ /_/ / /| | \__ \\_  \   / / __ / / \__ \ 
   / /_/ / _, _/ ___ |___/ 

RE: [GRASS-user] When starting grass in text mode, why... ? (Question of minor importance)

2008-01-17 Thread Patton, Eric
could you try editing your $GISBASE/etc/Init.sh file and change the top
line to #!/bin/sh -x. That will show gratuitous script progress info
and hopefully tell us which command is causing that message.

Hamish

No need; I found the thread:

http://article.gmane.org/gmane.comp.gis.grass.user/14406/match=login+message+sudo

I can confirm that if you create a file called .sudo_as_admin_successful in any 
$LOCATION/$MAPSET,
the messages stop when Grass enters that location only. I have no idea what 
consequences might occur
if this file is automatically generated by Init.sh for every new mapset (maybe 
none?).

~ Eric.





___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user