[GRASS-user] Print message before hitting "Run" in the g.parser UI

Hi there,

I have a bash script that processes a text file consisting of longitude and latitude columns plus other columns with point data -- the script imports the data and maps it. The script includes a parser-friendly section so that the g.parser UI shows up if called with no arguments.

I would like to print info on the file such us the name of columns with data (e.g. via g.message) so that the user can choose which one to import. However, nothing can apparently be printed to the "Output - GIS.m" window before the "Run" button of the g.parser UI is pressed (too late for choosing a column...).

Does anybody see a way around this? Running native WinGRASS 6.3.0 on a XP machine.

Regards,

Luigi

Luigi Ponti wrote:

I have a bash script that processes a text file consisting of longitude
and latitude columns plus other columns with point data -- the script
imports the data and maps it. The script includes a parser-friendly
section so that the g.parser UI shows up if called with no arguments.

I would like to print info on the file such us the name of columns with
data (e.g. via g.message) so that the user can choose which one to
import. However, nothing can apparently be printed to the "Output -
GIS.m" window before the "Run" button of the g.parser UI is pressed (too
late for choosing a column...).

Does anybody see a way around this?

There isn't any way around it. The only influence which a script has
over the UI is the options which it defines.

--
Glynn Clements <glynn@gclements.plus.com>