Page 1 of 1

Run a script on session close (SSH, RDP)?

Posted: Sat May 31, 2014 6:12 pm
by mharizanov
Hi,
googled a bit but could not find a solution to this:
I'd like a shell script with some cleanup functions to run after I logout of SSH or RDP session to my Pi, is that possible?
Thanks for pointers

Re: Run a script on session close (SSH, RDP)?

Posted: Sat May 31, 2014 6:57 pm
by DougieLawson
nano /home/pi/.bash_logout

Re: Run a script on session close (SSH, RDP)?

Posted: Mon Jun 02, 2014 10:57 am
by mharizanov
Thanks,
will dig into that. I suppose this is not going to work for RDP sessions, only ssh ones.
Regards