doc function updates and additions (#387)

This commit is contained in:
Mughur
2023-02-24 13:57:17 +02:00
committed by GitHub
parent 71051cde9c
commit 6839a456ac
27 changed files with 161 additions and 30 deletions

View File

@@ -6,12 +6,12 @@ run() Netscript Function
:RAM cost: 1 GB
:param string script: Filename of script to run
:param number numThreads: Optional thread count for new script. Set to 1 by
default. Will be rounded to nearest integer.
default. Has to be an integer.
:param args...:
Additional arguments to pass into the new script that is being run. Note
that if any arguments are being passed into the new script, then the
second argument ``numThreads`` must be filled in with a value.
:returns: The process id of the new process or 0 on failure.
:returns: The process id (PID) of the new process or 0 on failure.
Run a script as a separate process. This function can only be used to run
scripts located on the current server (the server running the script that