SuperAPI AI Directory

kill-process

Deployment & operations

View repository

Updated 10-15 21:03

About this skill

$ARGUMENTS: port number (one or multiple, separated by spaces/commas. e.g. 3000 or 3000 8080 5173)

$ARGUMENTSFind and terminate the process running on each port specified in .

Proceed for each port in the following order:

  1. lsof -ti :<port> Use the command to find the PID of the process using that port
  2. If there is a PID, kill -9 <PID> terminate the process with
  3. If there is no PID, report "No process is running on port "
  4. After termination, verify that the port has been properly freed

If multiple ports are specified, report the result for each port individually.