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'
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;