]> git.donarmstrong.com Git - mothur.git/blobdiff - mothur.cpp
pat's edits from 1/26/2010
[mothur.git] / mothur.cpp
index 5941663f8e063ba3ee6664ba47ee2cc3c7860522..ab4fea0e09482b3c8c988ade3e244fa4c8504750 100644 (file)
 /**************************************************************************************************/
 
 GlobalData* GlobalData::_uniqueInstance = 0;
+CommandFactory* CommandFactory::_uniqueInstance = 0;
 
 int main(int argc, char *argv[]){
        try {
                
                //remove old logfile
-               string logFileName = "mothur.logFile";
-               remove(logFileName.c_str());
+//             string log = "mothur.logFile";
+//             remove(log.c_str());
+               
+               time_t ltime = time(NULL); /* calendar time */  
+               string logFileName = "mothur." + toString(ltime) + ".logfile";
                
                //version
                #if defined (__APPLE__) || (__MACH__) || (linux) || (__linux)
@@ -105,7 +109,9 @@ int main(int argc, char *argv[]){
                while(bail == 0)                {       bail = mothur->getInput();                      }
        
                delete mothur;
-       
+               
+//             rename(log.c_str(), logFileName.c_str()); //logfile with timestamp
+               
                return 0;
        }
        catch(exception& e) {