1752806 Members
5616 Online
108789 Solutions
New Discussion

stat a file

 
allanm77
Frequent Advisor

stat a file

Hi Folks,

 

Are there ways other than process tracing /ls/lsof to know what files were/are being used by a process to launch in HP-UX/Linux.

 

Thanks,

Allan.

1 REPLY 1
Dennis Handly
Acclaimed Contributor

Re: stat a file

You can of course use a tool like glance to tell you.

Or you can write a program to call pstat_getfile2(2) to get a list of open files by process.

(But this is what lsof does.)

Or you can use tusc to see what files are opened.