[newbie] .bash_logout doesn't run?

2003-12-11 Thread Todd Slater
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.

Todd

-- 
If we don't believe in freedom of expression for people we despise,
we don't believe in it at all. -Noam Chomsky

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [newbie] .bash_logout doesn't run?

2003-12-11 Thread Eric Huff
 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?

2003-12-11 Thread Eric Huff
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?

2003-12-11 Thread Todd Slater
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


[newbie] bash_logout

2002-06-18 Thread mc . curry

Hi,

I have a script in my bash_logout file, which I expect to be executed
when I logout of the shell.

The problem is that this does not happen - despite my understanding of
the bash_logout file. The script which deletes mail trash works fine as
does source bash_logout.

Anyone let me know what is wrong ?

regards 

Mark 

=
[EMAIL PROTECTED]
ou email:[EMAIL PROTECTED]
ICQ:7514585
=



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com