how check if file is open
hi,
how can i find if a file is open by a process?
i tried pfiles * and this not work.
only with dtrace?
dtrace -n 'syscall::open*:entry /copyinstr(arg0)=="/etc/passwd"/ { printf("%s %s",execname,copyinstr(arg0)); }'
0
hi,
how can i find if a file is open by a process?
i tried pfiles * and this not work.
only with dtrace?
dtrace -n 'syscall::open*:entry /copyinstr(arg0)=="/etc/passwd"/ { printf("%s %s",execname,copyinstr(arg0)); }'