home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / graphics / gnuplot / 586 < prev    next >
Encoding:
Internet Message Format  |  1992-12-29  |  1.3 KB

  1. Path: sparky!uunet!crdgw1!cook!psinntp!psinntp!panix!banana
  2. From: banana@panix.com (Walter Polkosnik)
  3. Newsgroups: comp.graphics.gnuplot
  4. Subject: Gnuplot, pause and X11
  5. Message-ID: <1992Dec29.071036.9125@panix.com>
  6. Date: 29 Dec 92 07:10:36 GMT
  7. Organization: PANIX Public Access Unix, NYC
  8. Lines: 25
  9.  
  10. We use X11 with gnuplot, and use one of the X11 terminal setting in gnuplot to
  11. get the graphs on the screen. Since the system is not used by computer people,
  12. I wrote a shell script in which they can just pass the name of the file they
  13. want plotted, and the shell script redirects gnuplot commands with the filename
  14. into gnuplot, something like:
  15.  
  16.  
  17. gnuplot <<EOF
  18. plot $1
  19. pause -1
  20. EOF
  21.  
  22. (you get the idea, I don't want to type the whole thing in.)
  23.  
  24. This is inconvenient because the pause -1 forces the user to type return in the
  25. window they invoked the command even after the have killed the gnuplot window.
  26. Is there any way to get gnuplot to die when the window is killed so that we
  27. don't have to type return afterwards all the time?
  28.  
  29. I also tried pause 30000, and putting the gnuplot in the background but then we
  30. get a lot of gnuplot processes lying around after the window is killed
  31. -- 
  32. Walter Polkosnik                 
  33. Physics Department         banana@panix.com        
  34. Queens College, CUNY       {cmcl2,apple}!panix!banana
  35.