Re:Why would you still want to use strace in 2023? [video]
by tanelpoder on Monday January 08, 2024 @04:50AM
(#38909959)
Check out strace -y and strace -yy (--decode-fds)
[ Parent
| on HN ]
Re:Why would you still want to use strace in 2023? [video]
by zwp on Monday January 08, 2024 @05:12AM
(#38910100)
You still need to pull out the paths?
A sprinkling of grep/perl (awk/sed/ruby/...) is mostly good enough eg:
strace -e trace=%file cat /etc/passwd 2>&1 >/dev/null | grep ^open | grep -Po '(?<=").*(?=")'