Re: [newbie] .bash_logout doesn't run?
Some other facts: .bash_profile automatically starts X if guest logs in on tty1. XFce4 is the environment. When I quit XFce4, it automatically boots me out of my session and brings up the logon prompt. If I access the account via ssh .bash_logout does get executed. So, quitting XFce4 skips .bash_logout? This is just a bandaid, but is there a logout file for xfce4? Or, is there anyway to reprogram the logout button ? eric -- Mandrake HowTo's More: http://twiki.mdklinuxfaq.org Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] .bash_logout doesn't run?
On Thu, 11 Dec 2003 08:37:06 -0500 Todd Slater [EMAIL PROTECTED] wrote: I'm trying to set up a guest account and in it a script that will prompt the user for pop3 and smtp server and username, then write the info to a config file and launch sylpheed. On logout, I want .bash_logout to remove the config file and any mails in the Mail folder. I have written the commands in .bash_logout, but when I log back in as guest the old settings are still there. I could always delete the files on log in, but I'd prefer to do it on log out. Some other facts: .bash_profile automatically starts X if guest logs in on tty1. XFce4 is the environment. When I quit XFce4, it automatically boots me out of my session and brings up the logon prompt. If I access the account via ssh .bash_logout does get executed. So, quitting XFce4 skips .bash_logout? Ideas or suggestions appreciated. How about this: have .bash_profile nohup a script that startx's, and then waits for startx to finish, after which it does the deleting, etc? eric -- Mandrake HowTo's More: http://twiki.mdklinuxfaq.org Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] .bash_logout doesn't run?
On Thu, Dec 11, 2003 at 10:45:21AM -0800, Eric Huff wrote: On Thu, 11 Dec 2003 08:37:06 -0500 Todd Slater [EMAIL PROTECTED] wrote: Some other facts: .bash_profile automatically starts X if guest logs in on tty1. XFce4 is the environment. When I quit XFce4, it automatically boots me out of my session and brings up the logon prompt. If I access the account via ssh .bash_logout does get executed. So, quitting XFce4 skips .bash_logout? Ideas or suggestions appreciated. How about this: have .bash_profile nohup a script that startx's, and then waits for startx to finish, after which it does the deleting, etc? I asked on XFce and Jasper immediately knew that I was doing exec startxfce4 in ~/.bash_profile and kindly reminded me that exec takes the place of the shell so quitting wouldn't actually log me out. All I had to do was startxfce4 exit Thanks for the help, though! Todd Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com