Changeset 11240
- Timestamp:
- 07/15/10 05:17:26 (8 weeks ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
jsystemFramework/trunk/systemObjects/core/scriptingLanguages/src/jsystem/sysobj/scripting/python/PyShell.java
r11215 r11240 33 33 pyPrompts[0].setCommandEnd(true); 34 34 35 36 35 station = StationsFactory.createStation(getWorstation(), getOs(), "telnet", getUser(), getPassword(), null); 37 36 station.init(); … … 49 48 } 50 49 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>"); 53 56 CliCommand cmd = new CliCommand(command); 54 57 cmd.addErrors("Error"); 58 if (prompt != null) { 59 cmd.setPromptString("..."); 60 } 55 61 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(); 61 63 } 62 64
