I've coded a script and am wondering about it's reliability / portability.
Script displays system and Java thread data, given Java PID. Sample execution:
Q1: Aside from the obvious ("jstack/java/awk/... is not available or not in path" or "input data given wrongly"), when this will not work the intended way (Ubuntu/Debian)?
Q2: "It's easier to port a shell, than a shell-script", my friend likes to say. So, how much more effort this would need to work in Fedora / CentOS, Free BSD and Solaris? Am I wrong expecting it to run without troubles (assuming Bash present on those boxes)?