mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-26 19:14:32 +02:00
doc
This commit is contained in:
@@ -9,16 +9,16 @@ Get general info about a running script.
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
getRunningScript(filename?: string | number, hostname?: string, ...args: (string | number)[]): RunningScript;
|
||||
getRunningScript(filename?: FilenameOrPID, hostname?: string, ...args: (string | number)[]): RunningScript;
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| filename | string \| number | |
|
||||
| hostname | string | |
|
||||
| args | (string \| number)\[\] | |
|
||||
| filename | [FilenameOrPID](./bitburner.filenameorpid.md) | Optional. Filename or PID of the script. |
|
||||
| hostname | string | Optional. Name of host server the script is running on. |
|
||||
| args | (string \| number)\[\] | Arguments to identify the script |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
@@ -30,5 +30,5 @@ info about a running script
|
||||
|
||||
RAM cost: 0.3 GB
|
||||
|
||||
Running with no args returns curent script.
|
||||
Running with no args returns curent script. If you use a PID as the first parameter, the hostname and args parameters are unnecessary.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user