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