0

I have started npm start with screen for make node instant executable forever. but now I want to stop npm process. so how can I stop it?

I have executed below commands

> screen
> npm start

then pressed CTRL+A and then CTRL+D for closing screen session and then exit from terminal.

Now, how can I stop that npm job?

Haresh Vidja
  • 101
  • 3

2 Answers2

1

With CTRL+A and then CTRL+D you detach a screen session.

You typically want to resume that detached screen session, screen -r [pid.sessionname] after which among others you can terminate your program with CTRL+C

HBruijn
  • 77,029
  • 24
  • 135
  • 201
0

I got solution my self from googling it

I have see screen session name if by screen -list command

then I have executed command screen -X -S "sessionname" quit

Thanks for your helps :)

Haresh Vidja
  • 101
  • 3