mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 23:08:36 +02:00
doc
This commit is contained in:
@@ -9,7 +9,7 @@ Start another script on any server.
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
exec(script: string, host: string, numThreads?: number, ...args: Array<string | number | boolean>): number;
|
||||
exec(script: string, host: string, numThreads?: number, ...args: (string | number | boolean)[]): number;
|
||||
```
|
||||
|
||||
## Parameters
|
||||
@@ -19,7 +19,7 @@ exec(script: string, host: string, numThreads?: number, ...args: Array<string |
|
||||
| script | string | Filename of script to execute. |
|
||||
| host | string | Hostname of the <code>target server</code> on which to execute the script. |
|
||||
| numThreads | number | Optional thread count for new script. Set to 1 by default. Will be rounded to nearest integer. |
|
||||
| args | Array<string \| number \| boolean> | 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 third argument numThreads must be filled in with a value. |
|
||||
| args | (string \| number \| boolean)\[\] | 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 third argument numThreads must be filled in with a value. |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user