Article View: comp.sys.next.misc
Article #582Re: Three simple questions.. :)
From: Zenon Fortuna
Date: Fri, 31 Jul 1992 23:18
Date: Fri, 31 Jul 1992 23:18
35 lines
1664 bytes
1664 bytes
In article <1992Aug1.030126.13089@nmsu.edu> rscott@spock.NMSU.Edu (Joseph Good) writes: > >1) Is there a UNIX command to empty the recycler? I know that I am > just being completely lazy, but I would like to chunk anything that > I forgot, when I log out. Also, I know about the .login file, is > there a .logoff(out) file that will execute commands and stuff when > I log out? The .login/.logout files are Shell specific (work for csh/tcsh/zsh), but to go through these files you have to start an application like Terminal or Stuart. Read more about it in NeXT's Q&A: workspace.500. The Workspace has something like "LoginHook" and "LogoutHook", to execute own program(s) on start or termination. You can create a Shell-script, say, /usr/local/bin/emptyMyTrash: cd # to return to home directory /bin/rm -rf .NeXT/.NextTrash/* and declare: % dwrite loginwindow LogoutHook /usr/local/bin/emptyMyTrash This will empty your Recycler after terminating the Workspace application. You may generalize your emptyMyTrash script to work with mounted disks as well. -- [two other questions omitted] -- >Joseph Good >rscott@nmsu.edu (NeXT mail welcome!!) >atlantis@acca.nmsu.edu (Just plain ol' Unix) > -Z.
Technical Details
Message-ID:
<1992Jul31.231824.1753@resonex.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!mips!decwrl!csus.edu!netcomsv!resonex!zenonReferences:
<1992Aug1.030126.13089@nmsu.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.misc Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!mips!decwrl!csus.edu!netcomsv!resonex!zenon From: zenon@resonex.com (Zenon Fortuna) Subject: Re: Three simple questions.. :) Message-ID: <1992Jul31.231824.1753@resonex.com> Sender: zenon Organization: Resonex Inc., Sunnyvale CA References: <1992Aug1.030126.13089@nmsu.edu> Date: Fri, 31 Jul 1992 23:18:24 GMT Lines: 35