[GRASS-dev] [GRASS GIS] #2287: MONITOR_*_(ENV|CMD|MAP)FILE variables

#2287: MONITOR_*_(ENV|CMD|MAP)FILE variables
----------------------+-----------------------------------------------------
Reporter: hcho | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 7.0.0
Component: Display | Version: unspecified
Keywords: g.gisenv | Platform: Linux
      Cpu: x86-64 |
----------------------+-----------------------------------------------------
I tried to get the MONITOR_wx0_CMDFILE variable from $GISRC with g.gisenv,
but the variable name was automatically converted to uppercase with a
warning "GRASS variable must be uppercase." and G_getenv couldn't find it
of course. These MONITOR_*_*FILE variables have to be renamed to all
uppercase according to the g.gisenv warning. Or mixed case should be
allowed to be able to get MONITOR_* variables from the command line.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2287&gt;
GRASS GIS <http://grass.osgeo.org>

#2287: MONITOR_*_(ENV|CMD|MAP)FILE variables
-----------------------------+----------------------------------------------
Reporter: hcho | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 7.0.0
Component: Display | Version: svn-releasebranch70
Keywords: d.mon, g.gisenv | Platform: Linux
      Cpu: x86-64 |
-----------------------------+----------------------------------------------
Changes (by neteler):

  * keywords: g.gisenv => d.mon, g.gisenv
  * version: unspecified => svn-releasebranch70

Comment:

The related code seems to be here (rough "grep"):
{{{
grep MONITO * | grep '_'
list.c: G_asprintf(&env_name, "MONITOR_%s_ENVFILE", name);
list.c: G_asprintf(&cmd_name, "MONITOR_%s_CMDFILE", name);
main.c: mon = G__getenv("MONITOR");
main.c: G_unsetenv("MONITOR");
select.c: curr_mon = G__getenv("MONITOR");
select.c: G_setenv("MONITOR", name);
start.c: G_asprintf(&env_name, "MONITOR_%s_MAPFILE", name);
start.c: G_asprintf(&env_name, "MONITOR_%s_MAPFILE", name);
start.c: curr_mon = G__getenv("MONITOR");
start.c: G_asprintf(&env_name, "MONITOR_%s_ENVFILE", name);
start.c: G_asprintf(&env_name, "MONITOR_%s_CMDFILE", name);
start.c: G_setenv("MONITOR", name);
stop.c: G_asprintf(&env_name, "MONITOR_%s_ENVFILE", name);
stop.c: G_asprintf(&env_name, "MONITOR_%s_PID", name);
stop.c: const char *env_prefix = "MONITOR_";
stop.c: G_unsetenv("MONITOR");
}}}

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2287#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#2287: MONITOR_*_(ENV|CMD|MAP)FILE variables
----------------------+-----------------------------------------------------
  Reporter: hcho | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: major | Milestone: 7.0.0
Component: Display | Version: svn-releasebranch70
Resolution: fixed | Keywords: d.mon, g.gisenv
  Platform: Linux | Cpu: x86-64
----------------------+-----------------------------------------------------
Changes (by hcho):

  * status: new => closed
  * resolution: => fixed

Comment:

Fixed in r60204

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2287#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>