Options
All
  • Public
  • Public/Protected
  • All
Menu

Module tools/scp-exec

Index

Executable

Executable

  • main(ns: 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

    • ns: NS

      The Netscript object.

    Returns Promise<void>

Generated using TypeDoc