Files opened by a process

From Luniwiki
Jump to: navigation, search

Script

cat trace.sh
#!/bin/bash
strace -ff -e trace=file "$@" 2>&1 | perl -ne 's/^[^"]+"(([^\\"]|\\[\\"nt])*)".*/$1/ && print'

References

Daniel Simao (talk) 14:55, 14 May 2019 (EDT)