Changeset 11240

Show
Ignore:
Timestamp:
07/15/10 05:17:26 (8 weeks ago)
Author:
yoram.shamir
Message:

Support continuous transmit.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • jsystemFramework/trunk/systemObjects/core/scriptingLanguages/src/jsystem/sysobj/scripting/python/PyShell.java

    r11215 r11240  
    3333                pyPrompts[0].setCommandEnd(true); 
    3434 
    35                  
    3635                station = StationsFactory.createStation(getWorstation(), getOs(), "telnet", getUser(), getPassword(), null); 
    3736                station.init(); 
     
    4948        } 
    5049         
    51         public void handleCliCommand(String command) throws Exception { 
    52                 logFileS.append(command + "\r"); 
     50        public String handleCliCommand(String command) throws Exception { 
     51                return handleCliCommand(command, null); 
     52        } 
     53 
     54        public String handleCliCommand(String command, String prompt) throws Exception { 
     55                logFileS.append(command + "<br>"); 
    5356                CliCommand cmd = new CliCommand(command); 
    5457                cmd.addErrors("Error"); 
     58                if (prompt != null) { 
     59                        cmd.setPromptString("...");                      
     60                } 
    5561                cliConnection.handleCliCommand(command, cmd); 
    56         } 
    57  
    58         public void handleCliCommandWithoutWait(String command) throws Exception { 
    59                 logFileS.append(command + "\n\r"); 
    60                 cliConnection.sendString(command, false); 
     62                return cmd.getResult(); 
    6163        } 
    6264