1833788 Members
2507 Online
110063 Solutions
New Discussion

Used file

 
SOLVED
Go to solution
Eduardo_63
Advisor

Used file

Hi friends,
I need to copy file to other server using cron. I need know if the process that create the file already is not using it.
Exist any command for know it ?

Thanks,
Regards,
Eduardo.
3 REPLIES 3
Mel Burslan
Honored Contributor
Solution

Re: Used file

fuser -f

should give you the PID of the process(es) which has this file open for processing. If you get no PID #s in return, it means the file is not being used hence it is not open.
________________________________
UNIX because I majored in cryptology...
Eduardo_63
Advisor

Re: Used file

Hi Mel,
Thank you very much.
Eduardo_63
Advisor

Re: Used file

Thanks,