Waiting for tcsh login shell to terminate (via tcsh or perl)

Waiting for tcsh login shell to terminate (via tcsh or perl)

Post by Jeremy Betti » Tue, 01 Dec 1992 14:43:33

>    I want to call a script (preferably written in tcsh or perl)
>from my .login that executes code on logout.  How can I have such a
>script execute code when I logout and use nearly zero cpu until then?
>If I logout normally, the .logout file is the ideal place for this.
>However, the .logout doesn't get sourced on an autologout or a broken

Does tcsh have a trap command like sh does?? If so then just put
trap "source .logout" 1 2 3 15 (any other exit conditions that you might get)
This might be just wasting space since I don't know anything about tcsh but
that is how I get a .logout file to work under bs with exit code 0.  Normal
Jeremy Bettis   -*-   Jerbo Jehoshaphat   -*-   University of Nebraska

 BBS:   The Dew Drop Inn (402)476-8807 3/12/24

1. Is .login read if I run tcsh via rsh?


I have a question which I haven't been able to solve using manpages.
When I run tcsh on a remote computer (where I have an account) using the
rsh command it seems that the .login file isn't read. The command I use
        rsh peru -n xterm -display viator:0.0 -name peru -title peru -fn
        -misc-fixed-bold-r-normal--15-120-100-100-c-90-iso8859-1 -sb
        -sl 128 -geometry 80x28+230+175 &

My login shell, as defined in /etc/passwd is tcsh. If I login in
normally, via telnet or rlogin, all's fine. What's the problem? Is it rsh
or what?

Maxim Spivak                            |  #include <GoBears.h>
University of California, Berkeley      |  #include <StdDisclaimer.h>

2. avi files on solaris

3. How do I ${watch} users logining in via a tcsh shell script

4. probl. w. X-Config (Diamond stealth)

5. Problem using TCSH as login shell

6. How can I get the apache httpd binary for HPUX 10.10 ?

7. tcsh as LOGIN shell

8. WWW page building/management apps for Linux?

9. tcsh as login shell

10. PROBLEM: tcsh as login shell

11. Question: set tcsh to login shell, how?

12. Odd tcsh shell error on login....

13. Bash or Tcsh as user login shell?