home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!crdgw1!cook!psinntp!psinntp!panix!banana
- From: banana@panix.com (Walter Polkosnik)
- Newsgroups: comp.graphics.gnuplot
- Subject: Gnuplot, pause and X11
- Message-ID: <1992Dec29.071036.9125@panix.com>
- Date: 29 Dec 92 07:10:36 GMT
- Organization: PANIX Public Access Unix, NYC
- Lines: 25
-
- We use X11 with gnuplot, and use one of the X11 terminal setting in gnuplot to
- get the graphs on the screen. Since the system is not used by computer people,
- I wrote a shell script in which they can just pass the name of the file they
- want plotted, and the shell script redirects gnuplot commands with the filename
- into gnuplot, something like:
-
-
- gnuplot <<EOF
- plot $1
- pause -1
- EOF
-
- (you get the idea, I don't want to type the whole thing in.)
-
- This is inconvenient because the pause -1 forces the user to type return in the
- window they invoked the command even after the have killed the gnuplot window.
- Is there any way to get gnuplot to die when the window is killed so that we
- don't have to type return afterwards all the time?
-
- I also tried pause 30000, and putting the gnuplot in the background but then we
- get a lot of gnuplot processes lying around after the window is killed
- --
- Walter Polkosnik
- Physics Department banana@panix.com
- Queens College, CUNY {cmcl2,apple}!panix!banana
-