If a line contains open '(' or '{' characters, the shell will request more input before evaluating:
> function f() {
... x = 1;
... }
>
./mongo server:27017/dbname --quiet my_commands.js
I'm not quite sure if I missed something, but is there a folder where I have to store the .js file?
Or how do you execute a .js file?
I think the error occours by using the "time measure part". Without that part it works.
I use "time" in front of the command