0

I have a script started in a screen session, then detached, tried to reattach but now this session is dead.
The script is still running.
How I can kill the script, being unable to reattach the screen session?
Unfortunatly I have killed the screen process shown with ps.

Is there any possibility to stop the script?

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62

1 Answers1

0

I assume you are in a linux enviroment, as you say you used ps. If you have the uuid of the process, you can kill it by using kill < uuid> -9. If you know the process by name, try pkill < name>. Both cases should work on a terminal. If you are unable to open a terminal, try ctrl+alt+f1. You should see a login prompt, followed by a terminal. To get back to the xsession do ctrl+alt+f7

If everything else fails, try killing all processes: kill -9 -1. This should get you back to your display manager.

If you killed your screen process, try xinit from a terminal and then try to go back.

If you can't see the process, try ps aux

nanofarad
  • 40,330
  • 4
  • 86
  • 117
Pablo Mescher
  • 26,057
  • 6
  • 30
  • 33