If you're looking to build and install this from source, here's the incantation: CGO_ENABLED=0 go build -ldflags "-X main.version=dev -X main.commit=$(git rev-parse --short HEAD) -X 'main.buildDate=$(date +%Y-%m-%d)'" -o witr ./cmd/witr Call me old-fashioned, but if there's an install.sh, I would hope it would prefer the local src over binaries. Very cool utility! Simple tools like these keep me glued to the terminal…
Show HN: Witr – Explain why a process is running on your Linux system
61–70 of 108 posts
Re: Show HN: Witr – Explain why a process is running on your Linux system
#62What does this means for context: “Git repository name and branch” Does this mean it detects if something is running from within a git repository folder? Couldn’t find the code that checked this.
It appears to walk up from the process's working directory searching for a .git directory: https://github.com/pranshuparmar/witr/blob/1e47bdb8fde179b17...
Re: Show HN: Witr – Explain why a process is running on your Linux system
#63Cool idea. Reminds me of my alias "whodis" which just lsofs a port to find out the pid who's got it open, but way more functional.
Re: Show HN: Witr – Explain why a process is running on your Linux system
#64Re: Show HN: Witr – Explain why a process is running on your Linux system
#65This is amazing. Thank you for sharing this. Do you have any qualms about me making an entry in the AUR for this?
Re: Show HN: Witr – Explain why a process is running on your Linux system
#66Brilliant stuff! Any plan to support macos?
Re: Show HN: Witr – Explain why a process is running on your Linux system
#67I'm really loving this! 'Responsibility chain' will become a trendy phrase.
Re: Show HN: Witr – Explain why a process is running on your Linux system
#68> witr is successful if users trust it during incidents. > This project was developed with assistance from AI/LLMs [...] supervised by a human who occasionally knew what he was doing. This seems contradictory to me.
The last bit > supervised by a human who occasionally knew what he was doing. seems in jest but I could be wrong. If omitted or flagged as actual sarcasm I would feel a lot better about the project overall. As long as you’re auditing the LLM’s outputs and doing a decent code review I think it’s reasonable to trust this tool during incidents. I’ll admit I did go straight to the end of the readme to look for this exact…
Re: Show HN: Witr – Explain why a process is running on your Linux system
#69Earlier quoted context omitted.
No, it does not.
I'm on mobile, so it's not super easy to read the source, but it seems like it only checks for the parent processes? Also I don't think this approach works correctly, because a disowned/nohup process will show up as PPID 1 (systemd), which is not correct
Re: Show HN: Witr – Explain why a process is running on your Linux system
#70`ps uaxf` gives me pretty similar output.