Questions tagged [.bash-logout]

The tag has no usage guidance, but it has a tag wiki.

Filter by
Sorted by
Tagged with
0
votes
1answer
151 views

Is there a way to trigger a script on sftp session exit?

I'm looking for a way to start a shell script after a sftp session exited. Is it possible to trigger /home/user/.bash_logout via sftp, how does it work? I tried to set RequestTTY force in ~/.ssh/...
0
votes
1answer
416 views

bash_logout and history

I like to save every history in bash to a kind of logfiles, and made an extra directory ~/lib/hists/ for that purpose. Writing such a logfile in the shell is easy: history -w /home/stefan/lib/...