title: can't make basic mongo shell script with authentication
body: <p>I have a really complicated issue that i think i can solve by writing a mongo shell script but i can't even manage to make a simple connection.  I have a local mongo database which is requires a username/password that i normally access like this:</p>
  
  <pre><code>mongo admin -u &lt;username&gt; -p
  </code></pre>
  
  <p>at which point I enter the password and hooray! i have a shell. but that won't work for my issue.  As a test, I created a file called test.js and all it has in it is this:</p>
  
  <pre><code>var conn = new Mongo()
  
  db = conn.getDB("test");
  db.cust.find();
  </code></pre>
  
  <p>I then run the script from the command line like so:</p>
  
  <pre><code>mongo test.js
  </code></pre>
  
  <p>at which point i get this:</p>
  
  <pre><code>MongoDB shell version: 2.4.10
  connecting to: test
  </code></pre>
  
  <p>Why am i getting no results?</p>