No subject

Net.Noise owner news at
Wed Jun 30 12:59:27 EDT 1993

Newsgroups: info.grass.user
From: shapiro at (Michael Shapiro)
Subject: Re: ( problem )
Message-ID: <C9G1v2.1zn at>
Sender: news at (Net.Noise owner)
Organization: US Army Corps of Engineers Construction Engineering Research Labs
References: <9306240005.AA19650 at> <199306240642.AA25847 at>
Date: Wed, 30 Jun 1993 16:59:26 GMT
Lines: 41

>I remember there was a bug description from Micheal Shapiro a while 
>ago that told that only the way to use is to use the 
>command line interface.  There is some bug in the questions part of
>the interface. You have to prepare a input file for before you
>run the command.
>Lars Schylberg                          Email: larss at  
>Dept. of Geodesy and Photogrammetry 
>Royal Institute of Technology (KTH)     Tel.   +46 8 790 86 33   
>S-100 44  STOCKHOLM, SWEDEN             Fax.   +46 8 790 66 10

Yes, the interactive version had the wrong number of arguments on
an exec() function call. This has been fixed post 4.1. Here is PSmap.c
for the interactive version of See how this compares with what you
have. (src.alpha/

#include <stdio.h>

PSmap(scriptfile, ps_outfile, background)
char *scriptfile, *ps_outfile;
int background;
    char input[1024],

    sprintf(input, "input=%s", scriptfile);
    sprintf(output, "output=%s", ps_outfile);
    if (background && (G_fork() > 0)) exit(0);
    execlp("", "", input, output, 0);
    G_fatal_error("unable to exec");

Michael Shapiro               shapiro at
U.S. Army CERL                (217) 373-7277
P.O. Box 9005 
Champaign, Ill. 61826-9005

More information about the grass-user mailing list