diff options
author | gpotter2 <10530980+gpotter2@users.noreply.github.com> | 2022-12-31 00:38:55 +0100 |
---|---|---|
committer | zachir <zachir@librem.one> | 2023-10-19 08:22:37 -0500 |
commit | 27972f9a634b91934ee01050aecd38a775b3e04c (patch) | |
tree | 0c54e8172859c304dedf7237782a2b49968d236c /run-shell-2 | |
parent | 07dd7e3f9dd57530e16ac644e15521f37c60773b (diff) |
Fix ps: 'improper AIX field descriptor'
It appears that `ps` doesn't support using custom separators (e.g. here: '|') on all OSes. This replaces it with hardcoded lengths when known (cpu, mem, etc...).
E.G. on a debian bookworm machine this is what it returns:
```
ps -eo '%p|%c|%C|' -o "%mem" -o '|%a' --sort=-%cpu
error: improper AIX field descriptor
```
Diffstat (limited to 'run-shell-2')
0 files changed, 0 insertions, 0 deletions