How can I stop a script from exiting?

flugflug Member Posts: 7
edited August 2015 in web3-js
I'm running:
@geth --exec "loadScript('myscript.js')" attach

myscript.js has:

function runner() { console.log('ran!'); } setInterval(runner, 1000);

myscript.js runs fine in Node, but from geth the script just exits.

How do I stop the script from exiting, so that the runner runs?
Post edited by flug on
Sign In or Register to comment.