Home
Products
Blog
Downloads
Community
Help
Forums
Education
Projects
Open Search Input
Open Navigation
Search
Quick Start Guide
Forum FAQ
About
About us
Contact us
Technical, help and resource documents
Trademark rules
Login
Register
Unanswered topics
Active topics
Quick Start Guide
Forum FAQ
About
About us
Contact us
Technical, help and resource documents
Trademark rules
Board index
Using the Raspberry Pi
Beginners
Run a script on session close (SSH, RDP)?
Post Reply
Print view
3 posts • Page
1
of
1
mharizanov
Posts:
19
Joined:
Thu May 31, 2012 12:57 pm
Run a script on session close (SSH, RDP)?
Quote
Sat May 31, 2014 6:12 pm
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
DougieLawson
Posts:
36557
Joined:
Sun Jun 16, 2013 11:19 pm
Location:
Basingstoke, UK
Contact:
Website
Twitter
Re: Run a script on session close (SSH, RDP)?
Quote
Sat May 31, 2014 6:57 pm
nano /home/pi/.bash_logout
Note:
Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.
Any DMs sent on Twitter will be answered next month.
This is a doctor free zone.
mharizanov
Posts:
19
Joined:
Thu May 31, 2012 12:57 pm
Re: Run a script on session close (SSH, RDP)?
Quote
Mon Jun 02, 2014 10:57 am
Thanks,
will dig into that. I suppose this is not going to work for RDP sessions, only ssh ones.
Regards
Display posts from previous:
All posts
1 day
7 days
2 weeks
1 month
3 months
6 months
1 year
Sort by
Author
Post time
Subject
Ascending
Descending
Post Reply
Print view
3 posts • Page
1
of
1
Return to “Beginners”
Jump to
Community
General discussion
Announcements
Other languages
Deutsch
Español
Français
Italiano
Nederlands
日本語
Polski
Português
Русский
Türkçe
User groups and events
The MagPi
Using the Raspberry Pi
Beginners
Troubleshooting
Advanced users
Assistive technology and accessibility
Education
Picademy
Teaching and learning resources
Staffroom, classroom and projects
Astro Pi
Mathematica
High Altitude Balloon
Weather station
Code Club
Programming
C/C++
Java
Python
Scratch
Other programming languages
Windows 10 for IoT
Wolfram Language
Bare metal, Assembly language
Graphics programming
OpenGLES
OpenVG
OpenMAX
General programming discussion
Projects
Networking and servers
Automation, sensing and robotics
Graphics, sound and multimedia
Other projects
Gaming
Media centres
AIY Projects
Hardware and peripherals
Camera board
Compute Module
Official Foundation Display
HATs and other add-ons
Device Tree
Interfacing (DSI, CSI, I2C, etc.)
Operating system distributions
Raspbian
Raspberry Pi Desktop for PC and Mac
Other
Android
Debian
FreeBSD
Gentoo
Linux Kernel
NetBSD
openSUSE
Plan 9
Puppy
Arch
Pidora / Fedora
RISCOS
Ubuntu
Ye Olde Pi Shoppe
For sale
Wanted
Off topic
Off topic discussion