4.1.2. sciexp2.exprun.spur.SshShell¶
Methods
close(self) |
|
open(self, name[, mode]) |
|
run(self, \*args, \*\*kwargs) |
|
spawn(self, \*args, \*\*kwargs) |
|
temporary_dir(self) |
|
upload_dir(self, local_dir, remote_dir, ignore) |
Attributes
files |
-
class
SshShell(*args, **kwargs)¶ Bases:
spur.ssh.SshShellAn extended version of
spur.SshShell.It will properly kill all created processes when exiting.
The shell object has two new members:
hostname: str- Target host name.
username: str- Target user name.
The
runandspawnmethods have two new arguments:exit_on_error: bool, optional- Whether to exit the program when the process fails to execute.
kill: list of str, optional- Command to execute when killing the process. Useful when process is run with sudo.
-
run(self, *args, **kwargs)¶
-
spawn(self, *args, **kwargs)¶