Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem with ~/.bash_logout

17 views
Skip to first unread message

Joseph Hesse

unread,
Jun 25, 2008, 12:46:17 PM6/25/08
to
Hi,

I'm running Fedora 8.

I have the following line in my ~/.bash_logout file.
date >> /home/joe/date.log

When I reboot my system the file date.log does not appear in my home
directory. It doesn't matter whether I boot to runlevel 3 and do a
startx or stay in runlevel 3 and reboot.

Help would be appreciated.

Joe

Scott Lurndal

unread,
Jun 25, 2008, 6:50:06 PM6/25/08
to

Try actually logging out. reboot won't log out your shell, just kill it.

scott

Joseph Hesse

unread,
Jun 27, 2008, 10:51:22 AM6/27/08
to

Scott,
Thanks, it worked. I was doing $ reboot and, as you correctly pointed
out, it wasn't logging me out of my login shell.
Joe

davidsen

unread,
Jul 16, 2008, 2:39:27 PM7/16/08
to
You need to use the 'trap' facility, and in your login define a macro
which does what you want (or just executes the bash_logout). The reboot
should give your process some short time to clean up between telling it
to terminate and actually killing it.
--
-b.d.
0 new messages