mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-27 00:17:32 +01:00
d9da8c5d20
Function requires a hostname. Added the "home" hostname as an example.
19 lines
551 B
ReStructuredText
19 lines
551 B
ReStructuredText
scriptKill() Netscript Function
|
|
===============================
|
|
|
|
.. js:function:: scriptKill(scriptname, hostname)
|
|
|
|
:RAM cost: 1 GB
|
|
:param string scriptname: Filename of script to kill. case-sensitive.
|
|
:param string hostname: 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:
|
|
|
|
.. code-block:: javascript
|
|
|
|
scriptKill("demo.script", "home"); // returns: true
|