Where Online Learning is simpler!



The output of your command "$ zpool get free rpool" is:

--> -->
 
 
CalledProcessError
Python 3.12.3: /usr/bin/python3
Mon Apr 14 15:46:33 2025

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>
     56     print(f'<h3>The output of your command "<FONT color=#00CF00><B>$ {mycmd}</B></FONT>" is:</h3>')
     57     #result2 = subprocess.run("ls -l", shell=True, check=True, stdout=subprocess.PIPE)
=>   58     result2 = subprocess.run(mycmd, shell=True, check=True, stdout=subprocess.PIPE)
     59     #print('<PRE>' + result2.stdout.decode() + '</PRE>')
     60     line = result2.stdout.decode()
result2 undefined, subprocess = <module 'subprocess' from '/usr/lib/python3.12/subprocess.py'>, subprocess.run = <function run>, mycmd = 'zpool get free rpool', 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=('zpool get free rpool',), **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 = 127, process = <Popen: returncode: 127 args: 'zpool get free rpool'>, process.args = 'zpool get free rpool', output undefined, stdout = b'', stderr = None

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