When running a javascript file using the mongoshell the program prints out some information which is expected. However at the top of the screen the first line says "switched to db foo" resulting from the "use foo" command in the program.
use foo; // switched to db foo
db.myColl.find(); // { "bar" : "baz" }
The program switches among several databases so each time the "use" statement is invoked it produces a couple of lines of unwanted output.
How can the output of the "switched to db foo" line be suppressed from within the javascript program?