Re: Script for logout

From: joe dekk (no_email@none.abc)
Date: 03/23/03


From: joe dekk <no_email@none.abc>
Date: Sat, 22 Mar 2003 23:51:01 GMT

Bryan Dongray wrote:
> 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.

In bash it's $HOME/.bash_logout



Relevant Pages

  • Re: Script for logout
    ... Yann L'hostis wrote: ... If you are talking UNIX. ... In bourne shell and look-a-likes use: ... In csh and friends edit your $HOME/.logout script. ...
    (comp.security.ssh)
  • Re: [ Attn: Randy ] Ad-hoc Parsing?
    ... > 1) They were out of context quotes, as the quotes came with no context. ... embed cpu instructions within a DOS/Windows batch script. ... that this also is possible with bash scripts. ... statement "It can execute the .com file as easily as a command.com ...
    (alt.lang.asm)
  • Re: [opensuse] Editting PATH variable
    ... SuSEconfig script ... ... not knowing what you options you used to install ... If your unfamiliar with Bash a good book is 'Learning the Bash Shell' by ... For Java use editing the PATH variable is NOT required... ...
    (SuSE)
  • Re: Command Line Interface
    ... >> should accept system commands only for an administrator. ... >> how should I supress the bash shell and launch my custom CLI ... > The script could run in a restricted shell and offer a menu of ... account, and either 1) change account password, 2) ...
    (comp.os.linux.misc)
  • Re: bash: WHY???
    ... IMHO bash 2.05+ is the most usable interactive shell as it has ... OK - but call it a bash script, ... default in sh using sh features. ...
    (comp.unix.solaris)