terminate_imaging

Terminate remote imaging activity and remove scheduling tasks.

This function connects via SSH to the remote GONet device and performs the following: - Clears the crontab (removing all scheduled tasks) - Kills any remaining gonet4.py processes - Deletes contents of /home/pi/Tools/Status/ - Creates a marker file to indicate imaging is terminated and disabled

type ssh:

SSHClient

param ssh:

An active SSH connection provided by the GONet_Wizard.commands.connect.ssh_connect() decorator.

type ssh:

paramiko.client.SSHClient

rtype:

None

Notes

  • The ssh_connect decorator handles connection and disconnection.

  • If crontab removal or process termination fails, a warning is printed.

Functions:

GONet_Wizard.commands.terminate.terminate_imaging(ssh)[source]

Terminate remote imaging activity and remove scheduling tasks.

This function connects via SSH to the remote GONet device and performs the following: - Clears the crontab (removing all scheduled tasks) - Kills any remaining gonet4.py processes - Deletes contents of /home/pi/Tools/Status/ - Creates a marker file to indicate imaging is terminated and disabled

Parameters:

ssh (paramiko.client.SSHClient) – An active SSH connection provided by the GONet_Wizard.commands.connect.ssh_connect() decorator.

Return type:

None

Notes

  • The ssh_connect decorator handles connection and disconnection.

  • If crontab removal or process termination fails, a warning is printed.