• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Bash: How do execute commands upon logout?

I have a shell account on a freebsd box with bash 2.05. Basically I want a process to start when I login, and I want it to stop when I logout.

I know how to have the process start when I login. I don't know how to make it stop when I logout. Is there some sort of .logout file? I don't have control over the runlevels so I can't use them.

Any suggestions?
 
man bash
/FILES

yields:

~/.bash_logout
The individual login shell cleanup file, executed when a login shell exits

Just yanking your chain with the rtfm stuff, don't take it personally 😛
 
Back
Top