[GRASSLIST:778] Re: p.map.new & rast2gif (in GRASSLinks)

Glynn Clements glynn.clements at virgin.net
Mon Jul 21 15:26:36 EDT 2003


Shinichiro HAYASHI wrote:

> cp: cannot create regular file `/paint.ppm': Permission denied
> ERROR: ppm driver: unable to open printer port /paint.ppm
> ERROR can't read from ppm driver
> 
> -----------------------
> I have little idea about meaning of this error messege.
> 
> And I have some questions.
> 
> 1) Where does GRASS want to make `/paint.ppm' file? root directory?

The default is $HOME/paint.ppm; however, for a CGI script, $HOME might
be empty. The setting can be overridden by setting the environment
variable MAPLP, e.g.:

	MAPLP=/tmp/paint.$$.ppm
	export MAPLP
	p.map.new ...

-- 
Glynn Clements <glynn.clements at virgin.net>




More information about the grass-user mailing list