How to Run a task each time a user login in GDM (killing it at logout)
Asked by
Gianluca
Hello,
I'm wondering if someone could be so kind to explain me how to achieve this thing:
When i Login in GDM with username "X" a shell command should be run while loading the desktop and the usual stuff.
The command would be "ssh -qTfnN -D 1080 <email address hidden>" and i need this to estabilish a tunnel to connect to the internet.
Then, when i logout with that username "X", the tunnel should be closed.
I need the tunnel to be estabilished only during the user "X" login in GDM, not at system startup, neither when user "Y" is logged in. That's why i can't use rc.local
thanks for your time, your help is appreciated.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Thanos Koukoulis
- Solved:
- Last query:
- Last reply:
To post a message you must log in.