[GRASS-user] g.parser header definitions

2009-07-01 Thread John A Stevenson

Hi,

I am having problems with g.parser.  I am trying to convert one of my 
shell scripts into a module.


I've looked at the manual page and can run the example shell script 
there, but when I change the settings in the top section to describe my 
own variables it crashes with: 


execl() failed: Exec format error

Is there any more documentation on how to write the headers?  I have 
some other questions:

- what does the gisprompt option do?
- what types are available?  string, integer, float?
- what does the answer option do?

Cheers

John

--


Dr John Stevenson
Postdoctoral Research Associate
School of Earth, Atmospheric and Environmental Sciences
Williamson Building (Room 2.42)
University of Manchester
Manchester M13 9PL, UK
tel. +44(0)161 306 6585; fax. +44(0)161 306 9361;
john.steven...@manchester.ac.uk 


___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] g.parser header definitions

2009-07-01 Thread Martin Landa
Hi,

2009/7/1 John A Stevenson john.steven...@manchester.ac.uk:

[...]

 Is there any more documentation on how to write the headers?  I have some
 other questions:
 - what does the gisprompt option do?
 - what types are available?  string, integer, float?
 - what does the answer option do?

http://download.osgeo.org/grass/grass7_progman/gislib.html#Complete_Structure_Members_Table

Martin

-- 
Martin Landa landa.martin gmail.com * http://gama.fsv.cvut.cz/~landa
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] g.parser header definitions

2009-07-01 Thread Glynn Clements

John A Stevenson wrote:

 I am having problems with g.parser.  I am trying to convert one of my 
 shell scripts into a module.
 
 I've looked at the manual page and can run the example shell script 
 there, but when I change the settings in the top section to describe my 
 own variables it crashes with: 
 
 execl() failed: Exec format error

Does the file start with #!/bin/sh?

Use e.g. od -t x1z script.sh | head to ensure that your text editor
hasn't added a UTF-8 BOM at the start of the file.

-- 
Glynn Clements gl...@gclements.plus.com
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user