2019-03-03 04:08:54 +01:00
|
|
|
scriptKill() Netscript Function
|
|
|
|
===============================
|
|
|
|
|
2021-03-12 08:51:56 +01:00
|
|
|
.. js:function:: scriptKill(scriptname, hostname)
|
2019-03-03 04:08:54 +01:00
|
|
|
|
|
|
|
:RAM cost: 1 GB
|
2021-03-12 08:51:56 +01:00
|
|
|
:param string scriptname: Filename of script to kill. case-sensitive.
|
|
|
|
:param string hostname: Hostname of target server.
|
|
|
|
:returns: ``true`` if any scripts were killed.
|
2019-03-03 04:08:54 +01:00
|
|
|
|
2021-03-12 08:51:56 +01:00
|
|
|
Kills all scripts with the specified filename on the target server specified
|
|
|
|
by ``hostname``, regardless of arguments.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
.. code-block:: javascript
|
|
|
|
|
2023-01-06 13:43:09 +01:00
|
|
|
ns.scriptKill("demo.js", "home"); // returns: true
|