Bitburner

Bitburner

View Stats:
Yodasheep Jan 3, 2022 @ 3:15am
Copying NS2 script to server
I'm trying to copy/upload a NS2 script to another server using ns.scp() and then execute it from there but ns.scp() only allows .script, .lit and .txt. Am I missing something or is NS2 simply not fully implemented right now? It seems the command scp on the terminal supports it.
< >
Showing 1-2 of 2 comments
Procat Jan 3, 2022 @ 6:38am 
You should be able to copy .js files with ns.scp().
Lazarino Jan 5, 2022 @ 1:20pm 
If you're writing a .ns or .js script to copy over another .ns or .js script to another server, you need to write it as "await ns.scp('script_here.ns', 'home', 'target-server');"
There are several commands when run in a .ns or .js script that require "await" before it, scp being one of them.
All of the commands can be found under Basic Documentation -> NetscriptJS (Netscript 2.0) -> How to use ns2.
< >
Showing 1-2 of 2 comments
Per page: 1530 50