[6252] in s-news-athena

home help back first fref pref prev next nref lref last post

postscript problem: Unix command exit status -1

daemon@ATHENA.MIT.EDU (Emily Dickinson)
Tue Jan 24 18:27:54 1995

Date: Tue, 24 Jan 95 15:51:45 MST
From: emily@predict.com (Emily Dickinson)
To: s-news@utstat.toronto.edu

Hi,

Rather unpredictably, when invoking the postscript() function, 
my Splus session grinds to a sudden halt with the following message:

Unix command exit status -1
Error in unix(paste("rm", paste("'", x,  , "'", se..: Error exit from unix
	command "rm '/tmp/unix29444'"
Dumped

A traceback reveals:

> traceback()
Message: Error exit from unix command "rm '/tmp/unix29444'" 
13: unix(paste("rm", paste("'", x,  , "'", sep = "", collapse = " ")), output = F)
12: invisible(unix(paste("rm", paste("'", x,  , "'", sep = "", collapse = " ")), 
11: unlink(file)
10: unix("sed 's/[^:]*: *//'", input = matches[[1]])
9: sgraphrc.print("ps.command", getenv("S_POSTSCRIPT_PRINT_COMMAND"))
8: ".F8"(expression(sgraphrc.print("ps.command", getenv(
7: lapply(ps.options(), eval)
6: postscript(file = psFile, horizontal = horizontal, onefile = T)
...

I thought perhaps I was missing an environment variable, so I checked,
but saw that in fact my S_POSTSCRIPT_PRINT_COMMAND env variable is set:

> getenv("S_POSTSCRIPT_PRINT_COMMAND")
 S_POSTSCRIPT_PRINT_COMMAND 
 "lpr -r -h"               


Has anyone else run into this problem?
I find the only cure is to quit my Splus session and restart it, and
then things run fine.  This is a terrible cure.

Any help would be most appreciated!

Emily Dickinson
emily@predict.com



home help back first fref pref prev next nref lref last post