Quantcast
Channel: execute script when closing terminal - Ask Ubuntu
Browsing all 2 articles
Browse latest View live

Answer by terdon for execute script when closing terminal

The ~/bash_logout file is only sourced when you exit a login shell (from man bash): When an interactive login shell exits, or a non-interactive login shell executes the exit builtin command, bash reads...

View Article



execute script when closing terminal

I want to execute a specific sh script when closing a terminal. I edited the .bash-logout file, added this line of code inside if statement [ -x /home/user/Documents/logout_msg.sh ] &&...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images