[GRASS-dev] Re: winGRASS

Michael Barton michael.barton at asu.edu
Mon Dec 18 13:05:25 EST 2006


Glynn,


On 12/18/06 10:39 AM, "Glynn Clements" <glynn at gclements.plus.com> wrote:

> Yes.
> 
>> If so, any ideas of a substitute for the
>> "cat [filename] | gs ..." syntax that would work on Windows?
> 
> Well, "gs ... filename.ps" is normally preferable to using a pipe on
> any platform.

OK. I may have had problems with this syntax, hence the pipe. But I'll try
again.

> 
> However, there are a few differences between the native Windows
> version of Ghostscript and the Unix version; according to the Use.htm
> file:
> 
> 9.3 MS Windows
> 
> The name of the Ghostscript command line executable on MS Windows is
> gswin32c so use this instead of the plain 'gs' in the quickstart
> examples.
> 
> You must add gs\bin and gs\lib to the PATH, where gs is the top-level
> Ghostscript directory.
> 
> When passing options to ghostcript through a batch file wrapper such
> as ps2pdf.bat you need to substitute '#' for '=' as the separator
> between options and their arguments. For example:
> 
>    ps2pdf -sPAPERSIZE#a4 file.ps file.pdf

Will this work for all versions (*nix as well as Win)? If so, I can just
change it universally and not worry about whether it is on a windows systems
or not.

> 
> Ghostscript treats '#' the same internally, and the '=' is mangled by
> the command shell.
> 

Michael

__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics and Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton 




More information about the grass-dev mailing list