Home | Trees | Indices | Help |
---|
|
object --+ | extension.Extension --+ | host.Host --+ | SSHHost
An 'SSHHost' is accessible via 'ssh' or a similar program.
|
|||
Inherited from Inherited from |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from |
|
|||
host_name = TextField()
|
|||
ssh_program = TextField(default_value= "ssh", description= """
|
|||
ssh_args = SetField(TextField(description= """The arguments to
|
|||
scp_program = TextField(default_value= "scp", description= """
|
|||
scp_args = SetField(TextField(description= """The arguments to
|
|||
default_dir = TextField(description= """The default directory
|
|||
nfs_dir = TextField(description= """The default directory, as
|
|||
user_name = TextField(description= """The user name on the rem
|
|||
Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
Run a program on the remote host. 'path' -- The name of the program to run, on the remote host. If 'relative' is true, or if 'path' is not an absolute path but does contain at least one directory separator, then 'path' is interpreted relative to the default directory. Otherwise, 'path' is used unmodified. 'arguments' -- The sequence of arguments that should be passed to the program. 'environment' -- If not 'None', a dictionary of pairs of strings to add to the environment of the running program. 'timeout' -- The number of seconds the program is permitted to execute. After the 'timeout' expires, the program will be terminated. However, in some cases (such as when using 'rsh') it will be the local side of the connection that is closed. The remote side of the connection may or may not continue to operate, depending on the vagaries of the remote operating system. returns -- A pair '(status, output)'. The 'status' is the exit status returned by the program, or 'None' if the exit status is not available. The 'output' is a string giving the combined standard output and standard error output from the program.
|
Copy 'local_file' to 'remote_file'. 'local_file' -- The name of the file on the local machine. 'remote_file' -- The name of the file on the remote machine. The 'remote_file' must be a relative path. It is interpreted relative to the default directory. If 'None', the 'remote_file' is placed in the default directory using the basename of the 'local_file'. If the 'local_file' and 'remote_file' are the same, then this function succeeds, but takes no action.
|
Copy 'remote_file' to 'local_file'. 'remote_file' -- The name of the file on the remote machine. The 'remote_file' must be a relative path. It is interpreted relative to the default directory. 'local_file' -- The name of the file on the local machine. If 'None', the 'local_file' is placed in the current directory using the basename of the 'remote_file'. If the 'local_file' and 'remote_file' are the same, then this function succeeds, but takes no action.
|
Delete the 'remote_file'. 'remote_file' -- A relative path to the file to be deleted.
|
Form the 'ssh' command line. 'path' -- The remote command, in the same format expected by 'Run'. 'arguments' -- The arguments to the remote command. 'environment' -- As for 'Run'. returns -- A pair '(path, arguments)' describing the command to run on the local machine that will execute the remote command. |
Form the 'scp' command line. 'upload' -- True iff the 'local_file' should be copied to the remote host. 'local_file' -- The path to the local file. 'remote_file' -- The path to the remote file. returns -- The list of arguments for a command to run on the local machine that will perform the file copy. |
|
ssh_program
|
ssh_args
|
scp_program
|
scp_args
|
default_dir
|
nfs_dir
|
user_name
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Dec 23 12:30:41 2011 | http://epydoc.sourceforge.net |