tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY Auto-empty of CDE trash?
@ 2000-02-15 17:47 Cyndi Smith
  0 siblings, 0 replies; only message in thread
From: Cyndi Smith @ 2000-02-15 17:47 UTC (permalink / raw)
  To: tru64-unix-managers

Thanks for everyone's help.  I got three replies giving quite different
potential solutions.

The one I chose was 
      From: "Freesmeyer, Mary" <Mary.Freesmeyer@LendersService.com>
      According to the book - create a file ~/.dt/sessions/sessionexit
      You should be able to put rm ~/Trash/* in that file.
      Insure that it has execute permissions.
      Mary

I actually created  ~/.dt/sessions/sessionexit containing the following:
      rm -f ~/.dt/Trash/*
      rm -f ~/.dt/Trash/.[a-z]*
      touch ~/.dt/Trash/.trashinfo
which seems to work.  I will now place such a file in each user's .dt
directory.

I just need to add that to my newaccount creation script, I guess.

Other suggestions were:

      From: "Sean O'Connell" <sean@stat.Duke.EDU>
      Is this the dt trashcan or the advfs trashcan?  If it is the latter,
      xdm lets you run stuff in TakeConsole (which is exec'd on close of
      the xdm session).
      From a quick read, it looks like /usr/dt/config/Xreset is the
      equivalent.  According to the typical dire warnings...

I decided to avoid anything involving "dire warnings" <grin>...

      From: "Scott Mutchler" <smutchler@gfs.com>
      I have not worked much with CDE but I remember a trick that went 
      something like this:
      In your user's startup file (eg .profile), you can trap signal 0 (ie 
      a logout) and perform some action when that event happens.  Perhaps 
      you could call a script to rm any leftover stuff you want to get rid 
      of, or just clear the file, etc.
      Syntax, if I recall, is something like:
           trap 'rm filename' 0
      Good luck
      Scott Mutchler
      Gordon Food Service/Marketplace

I decided to avoid this because some of our users monkey with their .profiles
and they might modify this in an unfortunate manner...

Thanks for all the suggestions!

Cyndi
-- 
-Cyndi Smith			     Programmer Analyst III, Biomathematics
-cyn@odin.mdacc.tmc.edu		M.D. Anderson Cancer Center, Houston, Texas
-phone: (713) 794-4938					fax: (713) 792-4262
			<http://odin.mdacc.tmc.edu/~cyn>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-02-15 17:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-02-15 17:47 SUMMARY Auto-empty of CDE trash? Cyndi Smith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox