[GRASS-dev] [GRASS GIS] #2509: d.mon output overwrite

GRASS GIS trac at osgeo.org
Tue Feb 3 08:00:32 PST 2015


#2509: d.mon output overwrite
-------------------------+--------------------------------------------------
 Reporter:  martinl      |       Owner:  martinl    
     Type:  defect       |      Status:  assigned   
 Priority:  normal       |   Milestone:  7.0.0      
Component:  Display      |     Version:  unspecified
 Keywords:  d.mon        |    Platform:  Unspecified
      Cpu:  Unspecified  |  
-------------------------+--------------------------------------------------

Comment(by glynn):

 Replying to [comment:23 martinl]:

 > > If MONITOR is set, it names a program which will be executed with the
 complete argument list of the original program (including `argv[0]`). So
 e.g. if MONITOR is set to "wx-monitor", then running "d.rast
 elevation.dem" would execute "wx-monitor d.rast elevation.dem" then
 terminate (or would execute it using execve(), which has essentially the
 same result).
 >
 > I have implemented that in r64401

 Not really. The main issues are:

 1. It adds yet more cruft rather than simplifying. Hopefully this is just
 a transitional phase until existing modules are updated.

 2. The arguments are being concatenated into a string (without correct
 quoting) then passed as a single argument. The output from G_recreate()
 command may be sufficient for a human-readable description of the command,
 but it's not suitable for execution. G_parser() needs to save argv so that
 it can be retrieved, and D_open_driver() needs to pass the actual argv
 using G_vspawn_ex().

 3. The command is required to be a Python script. It should at least
 support compiled executables.

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/2509#comment:24>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list