running scripts while login and logout

Olafur Arason olafra at gmail.com
Tue Jan 24 06:13:14 UTC 2006


Do gedit /etc/gdm/PostSession/Default

the add something like:
echo "1234" > /tmp/prufa
after:
PATH="/usr/bin/X11:/usr/X11R6/bin:/opt/X11R6/bin:$PATH:/bin:/usr/bin"
OLD_IFS=$IFS

you can then replace echo with any command you like.
This works for login out, for login in you can use the session-manual file or
the /etc/gdm/PostLogin/Default

Olafur Arason

2006/1/24, L.V.Gandhi <lvgandhi at gmail.com>:
> On 1/23/06, Olafur Arason <olafra at gmail.com> wrote:
> > Basically it goes into ~/.gnome2/session-manual and is read
> > through gnome-session which is what gdm runs to start gnome.
>
> Thank You very much. Is there any thing like this to run a script by
> an user while logging out?
> --
> L.V.Gandhi
> http://lvgandhi.tripod.com/
> linux user No.205042
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
>
>




More information about the ubuntu-users mailing list