danielyxie / bitburner

Bitburner Game
https://danielyxie.github.io/bitburner/
2.81k stars 767 forks source link

'kill' not recognizing a running script #4244

Closed continuum1 closed 2 years ago

continuum1 commented 2 years ago

--var server = args[0]; --var script = args[1]; --var serverRAM = getServerMaxRam(server) - getServerUsedRam(server); --var scriptRAM = getScriptRam(script); --var threads = serverRAM / scriptRAM;

--exec(script, server, threads, server);

Script 2: hmhk.script

--while(true) { -- hack("home"); --}

]

[

I would expect that the kill and tail command would have the same level of access in terms of the running scripts but this result would suggest otherwise

borisflagell commented 2 years ago

It works as intended.

You need to specify the args passed to the script to the kill command. Otherwise, it would not be able to differentiate between two instance of hmhk.script.

Use : kill hmhk.script home image