.bash_logout

Oliver Horne yellowdog-newbie@lists.terrasoftsolutions.com
Mon, 14 Jul 2003 15:40:44 +0100 (BST)


Im mounting the network drive {//staff/okh$} using the
command: 
mount -t smbfs -o username=okh //staff/okh
//mnt/hdrive 
I have placed the above command in the .bashrc file
(located root/ ). 

This all works fine, but I want to unmount this file
when the root logs out. 

I have tried placing: 
umount /mnt/hdrive 
in the .bash_logout (located root/ 
this does not unmount the drive! (its not because the
drived is mounted everytime root logs in because I
have temp removed the mount line from the bashrc
file). 

I dont think it is reading the .bash_logout file on
shut down / log off, any ideas why or how to do this?

Thanks

Oli



________________________________________________________________________
Want to chat instantly with your online friends?  Get the FREE Yahoo!
Messenger http://uk.messenger.yahoo.com/