cterasdk.edge.shell module

cterasdk.edge.shell module#

class cterasdk.edge.shell.Shell(gateway)#

Bases: BaseCommand

Gateway Shell command

run_command(shell_command, wait=True)#

Execute a shell command on the gateway

Parameters:
  • shell_command (str) – The shell command to execute

  • wait (bool,optional) – Wait for the command to execute, defaults to True

Returns:

The command result, or the task url path when wait equals False