Module shellutils :: Class ShellFactory
[hide private]

Class ShellFactory

source code

This class manages shell creation for different shell protocols SSH, Telnet, or NTCMD.

Instance Methods [hide private]
 
createShell(self, client, protocolName=None) source code
 
isCygwin(self, shellClient)
Check for cygwin shell.
source code
 
isWinOs(self, shellClient)
Determine windows shell trying to execute 'ver' command
source code
 
isVioServer(self, shellClient)
Determine restricted shell of VIO server installed on AIX
source code
 
isMacOs(self, shellClient) source code
 
__isWinDetectInVerOutput(self, buffer) source code
Method Details [hide private]

createShell(self, client, protocolName=None)

source code 
Raises:
  • Exception - failed to detect OS

isCygwin(self, shellClient)

source code 

Check for cygwin shell. In cygwin shell it is possible to launch windows command interpreter.

Raises:
  • Exception - Failed starting Windows Cmd Shell

isWinOs(self, shellClient)

source code 

Determine windows shell trying to execute 'ver' command

Raises:
  • Exception - Failed detecting OS type