0

I am using this command to stop the Appium server :

 kill $(lsof -t -i: 10723)

But now it is not working.

ddarellis
  • 3,912
  • 3
  • 25
  • 53

1 Answers1

0

Avoid hardcoding pid, port, address, etc. Search by process name (Appium):

kill -9 $(ps -A | grep -m1 Appium | awk '{print $1}')

dmle
  • 3,498
  • 1
  • 14
  • 22