[GRASS-SVN] r58969 - grass/branches/develbranch_6/raster/r.li/r.li.daemon
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Feb 9 03:47:22 PST 2014
Author: neteler
Date: 2014-02-09 03:47:21 -0800 (Sun, 09 Feb 2014)
New Revision: 58969
Modified:
grass/branches/develbranch_6/raster/r.li/r.li.daemon/daemon.c
Log:
r.li.*: tell user where the ASCII file output is written to
Modified: grass/branches/develbranch_6/raster/r.li/r.li.daemon/daemon.c
===================================================================
--- grass/branches/develbranch_6/raster/r.li/r.li.daemon/daemon.c 2014-02-09 06:34:49 UTC (rev 58968)
+++ grass/branches/develbranch_6/raster/r.li/r.li.daemon/daemon.c 2014-02-09 11:47:21 UTC (rev 58969)
@@ -143,6 +143,7 @@
G_fatal_error(_("Cannot create random access file"));
}
else {
+ /* text file output */
/* check if ~/.r.li/output exists */
sprintf(out, "%s/.r.li/", G_home());
@@ -182,6 +183,7 @@
result = doneJob.f.f_d.res;
/* output */
if (parsed != MVWIN) {
+ /* text file output */
print_Output(res, doneJob);
}
else {
@@ -193,6 +195,7 @@
else {
donePid = doneJob.f.f_e.pid;
if (parsed != MVWIN) {
+ /* text file output */
error_Output(res, doneJob);
}
else {
@@ -222,10 +225,11 @@
donePid = doneJob.f.f_d.pid;
result = doneJob.f.f_d.res;
if (parsed != MVWIN) {
+ /* text file output */
print_Output(res, doneJob);
}
else {
- /* raster */
+ /* raster output */
raster_Output(random_access, doneJob.f.f_d.aid, g,
doneJob.f.f_d.res);
}
@@ -233,6 +237,7 @@
else {
donePid = doneJob.f.f_e.pid;
if (parsed != MVWIN) {
+ /* text file output */
error_Output(res, doneJob);
}
else {
@@ -301,6 +306,9 @@
G_short_history(output, "raster", &history);
G_command_history(&history);
G_write_history(output, &history);
+ } else {
+ /* text file output */
+ G_message("Result written to ASCII file <%s>", out);
}
if (close(receiveChannel) != 0)
More information about the grass-commit
mailing list