port remaining shell util functions except for fork

This commit is contained in:
Aaron
2009-05-14 11:42:52 -04:00
parent 3200bd7872
commit 397e5b13e8
3 changed files with 258 additions and 3 deletions

View File

@@ -122,7 +122,7 @@ string fixHost( string url , string host , string port ){
int main(int argc, char* argv[]) {
setupSignals();
// RecordMyLocation( argv[ 0 ] ); TODO
mongo::shellUtils::RecordMyLocation( argv[ 0 ] );
mongo::ScriptEngine::setup();
auto_ptr< mongo::Scope > scope( mongo::globalScriptEngine->createScope() );
@@ -279,7 +279,7 @@ int main(int argc, char* argv[]) {
if ( runShell ){
// MongoProgramScope s; TODO
mongo::shellUtils::MongoProgramScope s;
shellHistoryInit();