ConsoleUser
Copyright (c) 2010-2023 Skaion Corporarion, www.skaion.com
This project was developed in part by numerous sponsorships from the U.S. Government. The U.S. Government is authorized to reproduce and distribute reprints of Governmental purposes notwithstanding any copyright notation thereon.
All content reflects those of the authors and should not be interpreted as necessarily representing the official policies or endorsements, either expressed or implied, of the U.S. Government or Skaion Corporation.
- class SCPCommandShell.SCPCommandShell(system, config)¶
This class provides functionality that is expected to be common to all instances of scp when run in a shell, regardless of the specific platform running it.
Parameters:
system: a <no title> object to communicate with the target system
config: a <no title> object hold all our configuration
- exit(save=False)¶
Exit the shell, save only accepted to keep the prototype consistent
- get(remote, local)¶
Copy the file from the remote location to the local location
- open()¶
Open the command shell instance so we’ll be ready to go
- put(local, remote)¶
Copy the file from the local location to the remote location