Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 28 |
Nodes: | 6 (1 / 5) |
Uptime: | 59:12:25 |
Calls: | 424 |
Calls today: | 2 |
Files: | 1,025 |
Messages: | 90,950 |
Posted today: | 1 |
Or leave off the |tr if you don't mind having the result squashed together with the next shell prompt. Or replace |tr with ;echo to add a newline.
I suggest to inspect PATH for each parent process PID in the tree reported
by
ps xwf
e.g. with proper PID number (single line)
while IFS='' read -r -d ''; do if [[ "$REPLY" = PATH* ]]; then echo "$REPLY"; break; fi; done </proc/PID/environ