def runDBCommand(command):
    returncode = None
    line = ""
    try:
        create_process = subprocess.Popen(command, env=os.environ, shell=True, stderr=subprocess.STDOUT, stdout=subprocess.PIPE)
        while True:
            returncode = create_process.poll()
            line += create_process.stdout.readline()     
            if returncode != None:
                break;
                
    except __HOLE__:
        print "Could not execute the database create script: " 
        print "    " + command
        returncode = -1
    
    return [returncode,line]
    
# ~~~~~~~~~~~~~~~~~~~~~~ Retrieves the list of migration files for the specified database.  The files live in the
# ~~~~~~~~~~~~~~~~~~~~~~ {playapp}/db/migrate/{dbname} folder and follow a naming convention: {number}.{up|down}.{whatever}.sql
dataset/ETHPy150Open eBay/restcommander/play-1.2.4/modules/migrate-1.4/commands.py/runDBCommand