How do I display custom shell result? #1007
Unanswered
YohannesTz
asked this question in
Q&A
Replies: 1 comment
-
I do not know exactly which shell Python uses, but I suspect aliases simply don't work. Can you try creating a shell script instead, make it executable and executing this with its absolute path? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I know the shell module exists but was not able to make it work for my needs. (skill issue 😅)
The command I wanted to show the result of looks like this:
which I have added to my zshrc. now doing
![screenshot-20231216-064532Z-selected](https://private-user-images.githubusercontent.com/52599607/290977489-fccc7047-7706-4400-8c2a-b0c27a5b5535.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MzgxNDUsIm5iZiI6MTczODkzNzg0NSwicGF0aCI6Ii81MjU5OTYwNy8yOTA5Nzc0ODktZmNjYzcwNDctNzcwNi00NDAwLThjMmEtYjBjMjdhNWI1NTM1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDE0MTcyNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTljZDE5YmJmYTZkMDYyMzZjYjc5ZTliNjY4MjVjOWVlODVmYmI0ZDg1ZDZlMzE0ZDIyZjczMjQxMjkzMzk2NDUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.5zSi-3kFGwNb9QbCMJp_PlGaKpdg4qb-qBnU4kr2XHo)
cpu_temp
results the following:now in my i3config I have this:
which fails to show the result and exit with "cpu_temp exited with code 127"
![screenshot-20231216-064711Z-selected](https://private-user-images.githubusercontent.com/52599607/290977545-ba1e7dce-d6a5-463c-a7ae-2ec7d747958d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MzgxNDUsIm5iZiI6MTczODkzNzg0NSwicGF0aCI6Ii81MjU5OTYwNy8yOTA5Nzc1NDUtYmExZTdkY2UtZDZhNS00NjNjLWE3YWUtMmVjN2Q3NDc5NThkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDE0MTcyNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThkYTg4NGQ5ODMxMmQ3NzU4MzJlYzdmZDM3NjlhYTNiZDJjZmE2MDczN2NmOThmZTIyMDQxNDgwYmNlMzY0MDgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.uFv1OIcL-7QUDFbmRudqGtGMyp8XghldVyMjIDGdvVk)
I was able to make it work for
uptime
but not sure what I am doing wrong here.any help is appreciated! 🙏
Beta Was this translation helpful? Give feedback.
All reactions