scriptKill() Netscript Function

scriptKill(scriptname, hostname)
RAM cost:

1 GB

Arguments:
  • scriptname (string) – Filename of script to kill. case-sensitive.
  • hostname (string) – Hostname of target server.
Returns:

true if any scripts were killed.

Kills all scripts with the specified filename on the target server specified by hostname, regardless of arguments.

Example:

scriptKill("demo.script", "home"); // returns: true