Re: Script for logout

From: Bryan Dongray (btd@dongrays.com)
Date: 03/23/03

  • Next message: joe dekk: "Re: Script for logout"
    From: Bryan Dongray <btd@dongrays.com>
    Date: Sat, 22 Mar 2003 17:27:03 -0600
    
    

    Yann L'hostis wrote:
    > I would like to know whether it's possible to run a script when a log out
    > (or time out) occur ?

    If you are talking UNIX.

    In bourne shell and look-a-likes use:
            trap 0 /path/script

    In csh and friends edit your $HOME/.logout script.


  • Next message: joe dekk: "Re: Script for logout"

    Relevant Pages

    • this is not a specific linux question but more of just UNIX - tar, dump, restore command questions?
      ... I am new at a company that has a Unix server and they have no documentation ... They have a script I assume that runs a backup tape every night of just one ... assuming their either are using a tar or dump command / script. ... a restore from a tar file assuming they are using tar. ...
      (comp.os.linux.misc)
    • Re: ksh script ! How can i do this
      ... > but korn shell and unix systems. ... > I am new to scripting and have a script that I would like to write to ... > I want to pull some information out of a txt file created from dos / I ... We have noticed that your lotus notes mailbox is exceeding the 100mb ...
      (comp.unix.shell)
    • Re: [ Attn: Randy ] Ad-hoc Parsing?
      ... > therefore you loose the primary advantage of writing a script and may ... > matching Unix. ... You use six external programs ('tidy', 'make-make', ... program and not by the shell, ...
      (alt.lang.asm)
    • postfix+spamassassin help
      ... I am having some trouble getting postfix and spamassassin working ... and I have written a script ... cleanup unix n - n - 0 cleanup ... spamfilter unix - n n - 10 pipe ...
      (comp.os.linux.misc)
    • Re: cd forgotten after script finishes.
      ... > This script works fine, but the cd commands are cancelled out after script ... This is standard behaviour of a Unix system and is inherent ... life that you /must/ be cognisant of in order to use a Unix system. ... > works so well in Good Old DOS! ...
      (comp.unix.shell)