tools.scp exec - vladzaharia/bitburner GitHub Wiki

Module: tools/scp-exec

Table of contents

Functions

Executable

main

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.js

example 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]

Parameters

Name Type Description
ns NS The Netscript object.

Returns

Promise<void>

Defined in

tools/scp-exec.ts:34

⚠️ **GitHub.com Fallback** ⚠️