How to kill a specific x11rdp session

27,822

Using the command below:

ps u -u "$USER" | awk '/xrdp/ && ! /awk / {system("kill "$2)}'
  • Replace $USER with another user name if the process is running with a different user than you
  • Replace xrdp with your process name
Share:
27,822

Related videos on Youtube

kamil
Author by

kamil

Updated on September 18, 2022

Comments

  • kamil
    kamil over 1 year

    I am using x11rdp with xrdp v0.6.0 in ubuntu 12.04

    The problem that when I connect remotely from home to office my session is stuck!

    When I get back to work I can't open applications that are already run in the x11rdp session. e.g. Firefox, empathy...

    I have to close them then I can open the needed app again.

    I know I can pkill -u user but it seems non-professional

    I tried sudo service xrdp restart (or stop then start). It doesn't close current sessions.

    Is there is any xrdp session manager like in windows server or can I kill only my user's session?