tools.scp exec - vladzaharia/bitburner GitHub Wiki
▸ main(ns): Promise<void>
Copy and execute a given file on a given host.
export
example Copy and execute /helpers/hack-weaken-grow.js on all personal and rooted servers.
run /tools/scp-exec.jsexample Copy and execute script on given host.
run /tools/scp-exec.js [host] [path-to-script]example Copy and execute script on worker servers.
run /tools/scp-exec.js worker [path-to-script]example Copy and execute script on host with given threads and args.
run /tools/scp-exec.js [host] [path-to-script] [threads] [arg0] ... [argn]| Name | Type | Description |
|---|---|---|
ns |
NS |
The Netscript object. |
Promise<void>