Newsgroups: info.grass.user
Path: zorro.cecer.army.mil!shapiro
From: shapiro@zorro.cecer.army.mil (Michael Shapiro)
Subject: Re: ps.map ( problem )
Message-ID: <C9G1v2.1zn@news.cecer.army.mil>
Sender: news@news.cecer.army.mil (Net.Noise owner)
Organization: US Army Corps of Engineers Construction Engineering Research Labs
References: <9306240005.AA19650@deepthought.ucdavis.edu> <199306240642.AA25847@fmi.fmi.kth.se>
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 ps.map 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 ps.map before you
run the command.
Lars Schylberg Email: larss@fmi.kth.se
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 ps.map. See how this compares with what you
have. (src.alpha/ps.map/ps.map/inter/PSmap.c)
#include <stdio.h>
PSmap(scriptfile, ps_outfile, background)
char *scriptfile, *ps_outfile;
int background;
{
char input[1024],
output[1024];
sprintf(input, "input=%s", scriptfile);
sprintf(output, "output=%s", ps_outfile);
if (background && (G_fork() > 0)) exit(0);
execlp("ps.map", "ps.map", input, output, 0);
G_fatal_error("unable to exec ps.map");
}
--
Michael Shapiro shapiro@zorro.cecer.army.mil
U.S. Army CERL (217) 373-7277
P.O. Box 9005
Champaign, Ill. 61826-9005