public void run()   
    {   
        boolean ok = false;   
        String input = "";   
        while(!ok)   
        {   
            System.out.print("->");   
            try   
            {   
                input = cin.readLine();    
            }   
            catch(Exception e)   
            {   
                e.printStackTrace();   
            }   
            switch(parseInput(input))       //命令号   
            {   
                case 1:   
                    consoleQUIT();          //退出   
                    break;   
                case 8:   
                    ok = consoleLISTUSER(); //列出所有注册用户及其工作目录   
                    break;   
                case 0:   
                    ok = consoleLIST();     //列出活动,及其IP   
                    break;   
                case 2:   
                    ok = consoleADDUSER();  //增加一个注册用户   
                    break;   
                case 3:   
                    ok = consoleDELUSER();  //删除一个注册用户   
                    break;   
                 case 7:   
                    ok = consoleHELP();     //显示帮助信息   
                    break;   
                 case -1:   
                    ok = consoleERR();      //错误命令   
                    break;   
            }   
        }   
    }