[GRASS-SVN] r32602 - grass/trunk/lib/raster
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Aug 6 23:25:38 EDT 2008
Author: glynn
Date: 2008-08-06 23:25:37 -0400 (Wed, 06 Aug 2008)
New Revision: 32602
Modified:
grass/trunk/lib/raster/raster.c
Log:
Execute $GRASS_NOTIFY (if set) when a d.* program completes
Modified: grass/trunk/lib/raster/raster.c
===================================================================
--- grass/trunk/lib/raster/raster.c 2008-08-07 03:23:52 UTC (rev 32601)
+++ grass/trunk/lib/raster/raster.c 2008-08-07 03:25:37 UTC (rev 32602)
@@ -66,9 +66,14 @@
void R_close_driver(void)
{
+ char *cmd = getenv("GRASS_NOTIFY");
+
COM_Respond();
COM_Client_Close();
COM_Graph_close();
+
+ if (cmd)
+ system(cmd);
}
/*!
More information about the grass-commit
mailing list