You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm probably doing this all wrong, but I would be interested in how others have got the alias working as my approach doesn't work;
$ alias fw-ectool='/home/john/code/framework-ec/build/bds/util/ectool --interface=fmw'
$ python3 cpu-usage-led.py
Traceback (most recent call last):
File "/home/john/code/framework-cpu-usage-led/cpu-usage-led.py", line 94, in <module>
main()
File "/home/john/code/framework-cpu-usage-led/cpu-usage-led.py", line 79, in main
changeColor(math.ceil(psutil.cpu_percent() / 25), led)
File "/home/john/code/framework-cpu-usage-led/cpu-usage-led.py", line 46, in changeColor
changeLed(colorName, led)
File "/home/john/code/framework-cpu-usage-led/cpu-usage-led.py", line 52, in changeLed
subprocess.run(["fw-ectool", "led", led, colorName])
File "/usr/lib/python3.10/subprocess.py", line 501, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.10/subprocess.py", line 969, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.10/subprocess.py", line 1845, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'fw-ectool'
The text was updated successfully, but these errors were encountered:
I'm probably doing this all wrong, but I would be interested in how others have got the alias working as my approach doesn't work;
The text was updated successfully, but these errors were encountered: