Update a few scripts
This commit is contained in:
parent
8d1df7fe1d
commit
5a3fa148fe
@ -2,6 +2,5 @@
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="" vcs="Git" />
|
||||
<mapping directory="$PROJECT_DIR$/typescript-template" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
29
servers/home/clear-servers.js
Normal file
29
servers/home/clear-servers.js
Normal file
@ -0,0 +1,29 @@
|
||||
/** @param {NS} ns */
|
||||
export async function main(ns) {
|
||||
let files = [
|
||||
"run-script-on-all-servers.js",
|
||||
"recursive-run.js",
|
||||
"recursive-copy.js",
|
||||
"recursive-kill.js",
|
||||
"hack-args.js",
|
||||
"hack.js",
|
||||
"root.js",
|
||||
"recursive-root.js"
|
||||
]
|
||||
let hosts = [
|
||||
"zb-institute",
|
||||
"comptek",
|
||||
"nectar-net",
|
||||
"neo-net",
|
||||
"max-hardware",
|
||||
"omega-net",
|
||||
"avmnite-02h",
|
||||
"CSEC"
|
||||
]
|
||||
|
||||
for(const host of hosts) {
|
||||
for (const file of files) {
|
||||
ns.rm(file, host)
|
||||
}
|
||||
}
|
||||
}
|
4
servers/home/hello-world.js
Normal file
4
servers/home/hello-world.js
Normal file
@ -0,0 +1,4 @@
|
||||
/** @param {NS} ns */
|
||||
export async function main(ns) {
|
||||
ns.tprint("Hello World!");
|
||||
}
|
Loading…
Reference in New Issue
Block a user