home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / sun / apps / 2436 < prev    next >
Encoding:
Internet Message Format  |  1992-11-10  |  2.2 KB

  1. Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!darwin.sura.net!zaphod.mps.ohio-state.edu!sdd.hp.com!cs.utexas.edu!ut-emx!utig.ig.utexas.edu!tbodine
  2. From: tbodine@utig.ig.utexas.edu (Tom Bodine)
  3. Newsgroups: comp.sys.sun.apps
  4. Subject: Re: Textedit/NEWSPrint leaving behind /tmp/hvtmp* files
  5. Message-ID: <83335@ut-emx.uucp>
  6. Date: 10 Nov 92 18:59:56 GMT
  7. References: <4258@copper.Denver.Colorado.EDU> <2284@dutiws.tudelft.nl> <4266@copper.Denver.Colorado.EDU> <Nov.5.15.12.04.1992.19800@pilot.njin.net>
  8. Sender: news@ut-emx.uucp
  9. Lines: 51
  10.  
  11. In article <Nov.5.15.12.04.1992.19800@pilot.njin.net>, giacobbe@pilot.njin.net (Jeff Giacobbe) writes:
  12. |> 
  13. |> I wish there was a way to delete those hvtmp files as part of the OW 
  14. |> shutdown process, but I guess it's really HelpViewer that needs the
  15. |> bug fix (ahem.."feature").
  16. |> 
  17. |> 
  18. |> Regards,
  19. |> 
  20. |> Jeff
  21.  
  22. Well..
  23.     You could add a couple of lines to $OPENWINHOME/lib/Xinitrc.
  24.  
  25. IE. ( From openwindows version 3 Xinitrc )
  26. ----------------------------------------------------------------------------
  27. # .xinitrc - OpenWindows startup script.
  28.  
  29. if [ -f $HOME/.Xdefaults ]; then
  30.     xrdb $HOME/.Xdefaults               # Load Users X11 resource database
  31. else
  32.     xrdb $OPENWINHOME/lib/Xdefaults     # Load Default X11 resource database
  33. fi
  34.  
  35. $OPENWINHOME/lib/openwin-sys            # OpenWindows system initialization
  36.  
  37. # SunView binary compatibility is default mode.
  38. [ -z "$NOSUNVIEW" -o "$NOSUNVIEW" -ne 1 ] && eval `svenv -env`
  39.  
  40. sleep 15 & pid=$!                       # OpenLook Window Manager
  41. olwm -syncpid $pid &
  42. wait $pid                               # Pause until olwm inits
  43.  
  44. if [ -x $HOME/.openwin-init ]; then
  45.     $HOME/.openwin-init                 # Custom OpenWindows tools
  46. else
  47.     $OPENWINHOME/lib/openwin-init       # Default OpenWindows tools
  48. fi
  49.  
  50. wait                                    # Wait for olwm (key client) to exit
  51.  
  52. # clean out temporary files left by cmdtool, textedit, and shelltool
  53.  rm -f /usr/tmp/*
  54.  rm -f /tmp/*
  55. ----------------------------------------------------------------------------
  56.  
  57. This is perhaps better for diskless stations so that /tmp files in use aren't
  58. deleted.  Of course you'd have to change every user owned .xinitrc as well.
  59.  
  60. regards Tom Bodine
  61.  
  62.