On Thu, Jul 9, 2009 at 9:59 PM, Olivier Regnier <oregn...@hotmail.com>wrote:

> Hello,
>
> I installed OpenBSD 4.5 on my Samsung NC10. I want to clear the console
> each
> time a user logs out. I modified /etc/gettytab file but i have no result.
> Can
> you give me some information on this topic ?
>
> Thank you in advance.
>
> _________________________________________________________________
> Inidit ! Des Emotictnes Dijanties! Installez les dans votre Messenger !
> http://www.ilovemessenger.fr/Emoticones/EmoticonesDejantees.aspx
>
>
Depeding on your shell, you could do this from a .logout file (and from
/etc/skel to be added to all new users). This .bash_logout is used by
KUbuntu:

# ~/.bash_logout: executed by bash(1) when login shell exits.

# when leaving the console clear the screen to increase privacy

if [ "$SHLVL" = 1 ]; then
    [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q
fi

Reply via email to