The output of your command "systemctl status sshd" is:

--> -->
 
 
CalledProcessError
Python 3.12.3: /usr/bin/python3
Sun Dec 22 18:29:24 2024

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /usr/lib/cgi-bin/lincmd.cgi in <module>
     58     print('<h3>The output of your command "<FONT color=#008500><B>{}</B></FONT>" is:</h3>'.format(mycmd))
     59     #result2 = subprocess.run("ls -l", shell=True, check=True, stdout=subprocess.PIPE)
=>   60     result2 = subprocess.run(mycmd, shell=True, check=True, stdout=subprocess.PIPE)
     61     #print('<PRE>' + result2.stdout.decode() + '</PRE>')
     62     line = result2.stdout.decode()
result2 undefined, subprocess = <module 'subprocess' from '/usr/lib/python3.12/subprocess.py'>, subprocess.run = <function run>, mycmd = 'systemctl status sshd', shell undefined, check undefined, stdout undefined, subprocess.PIPE = -1
 /usr/lib/python3.12/subprocess.py in run(input=None, capture_output=False, timeout=None, check=True, *popenargs=('systemctl status sshd',), **kwargs={'shell': True, 'stdout': -1})
    569         retcode = process.poll()
    570         if check and retcode:
=>  571             raise CalledProcessError(retcode, process.args,
=>  572                                      output=stdout, stderr=stderr)
    573     return CompletedProcess(process.args, retcode, stdout, stderr)
global CalledProcessError = <class 'subprocess.CalledProcessError'>, retcode = 4, process = <Popen: returncode: 4 args: 'systemctl status sshd'>, process.args = 'systemctl status sshd', output undefined, stdout = b'', stderr = None

CalledProcessError: Command 'systemctl status sshd' returned non-zero exit status 4.
      add_note = <built-in method add_note of CalledProcessError object>
      args = (4, 'systemctl status sshd')
      cmd = 'systemctl status sshd'
      output = b''
      returncode = 4
      stderr = None
      stdout = b''
      with_traceback = <built-in method with_traceback of CalledProcessError object>