Thread View: comp.sys.next.misc
4 messages
4 total messages
Started by Joseph Good
Sat, 01 Aug 1992 03:01
Three simple questions.. :)
Author: Joseph Good
Date: Sat, 01 Aug 1992 03:01
Date: Sat, 01 Aug 1992 03:01
31 lines
1634 bytes
1634 bytes
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? 2) Where do I find documentation on all those nifty commands to do all of that NeXT stuff? i.e. turn off printer, move stuff around on the screen. The stuff that starts with NX??? :) 3) When I am running applications from other hosts using the Public Window server [only on when I am running programs :) ], is it possible to exchange data between the two machines? i.e. copy a .tiff from one machine, onto WordPerfect on another? Both windows are on my screen. I tried it once, but it only put an empty box in WP. This has also happened when the machine I was running it on had no disk space left, and wouldn't load up graphics. Thanks! -- Joseph Good +-------------------+ - More than just a band.... | Green Dot Brigade | - It's a whole damn army of dots... +-------------------+ - And we've declared war on the 7-Up dots... rscott@nmsu.edu (NeXT mail welcome!!) atlantis@acca.nmsu.edu (Just plain ol' Unix)
Re: Three simple questions.. :)
Author: 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.
Re: Three simple questions.. :)
Author: Art Isbell
Date: Sat, 01 Aug 1992 17:14
Date: Sat, 01 Aug 1992 17:14
43 lines
2422 bytes
2422 bytes
In article <1992Jul31.231824.1753@resonex.com> zenon@resonex.com (Zenon Fortuna) writes:
>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 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.
Unfortunately, one must be root to enable Log{in,out}Hooks. If you can get
root to cooperate and set up Log{in,out}Hooks that call users' individual
scripts, then individual users can have Log{in,out}Hooks do various
user-specific things. So a sample LoginHook might be:
#!/bin/sh
if [ -f /Users/$1/.loginHook ]; then
. /Users/$1/.loginHook
elif [ "$1" = "root" -a -f /.loginHook ]; then
. /.loginHook
fi
However, others have warned of certain security risks involved with
Log{in,out}Hooks (they are run as root, I guess), so use with caution.
--
Art Isbell Cubic Solutions
NeXT Registered Developer #745 NeXT software development and consulting
Email: isbell@cats.UCSC.EDU Voice: (408)335-1154
USmail: 95018-9442 Fax: (408)335-2515
Re: Three simple questions.. :)
Author: Gene C. Van Nostern
Date: Mon, 03 Aug 1992 22:04
Date: Mon, 03 Aug 1992 22:04
41 lines
1806 bytes
1806 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? > (1) Try % \rm ~/.NeXT/.NextTrash/* (2) Or rather, in your .login file, alias empty '\rm ~/.NeXT/.NextTrash/*' and, when you want to empty the trash, type % empty Note that this will not remove the dot in the middle of the recycler icon until the icon is refreshed--by, for example, opening the trash. And last, in your .logout (not .logoff) file, put either \rm ~/.NeXT/.NextTrash/* or empty, depending on which option you chose above. Hope this helps. Gene. gene@icarus.claremont.edu Have you seen these people? Name Last seen/heard from Add. Info. Jeff Kirk Yokota AB,Japan,1981 Fthr Clyde,Mthr Sophie,was in BSA John W. Ewing III Las Vegas,NV,1987? May go to UNLV, has sister Allison? Lynn Aldrich UNY @Albany,1990 May still be @Albany, half Korean Any info. is appreciated. Please respond via e-mail.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads