#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> _______________________________________________ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev