Operating System - HP-UX
1833016 Members
2431 Online
110048 Solutions
New Discussion

checking file in transmission

 
dude70_1
Advisor

checking file in transmission

Hi,

I need a script where I want to find whether a file is being in transmission or not. Can sombody throw some light?

Thanks.
Dude.
3 REPLIES 3
Darren Prior
Honored Contributor

Re: checking file in transmission

Hi,

You'll need to specify a little more information about how the file is being transmitted? email, ftp, CIFS, NFS...

regards,

Darren.
Calm down. It's only ones and zeros...
V.Tamilvanan
Honored Contributor

Re: checking file in transmission

Hi ,

Have u seen your earlier post for the same problem.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=581772
Elmar P. Kolkman
Honored Contributor

Re: checking file in transmission

Checkout the fuser command. If a file is being accessed, there is a process connected to it. Doing a fuser on the file will report the process ID of the commands accessing the file. You might check with ps -p if the process is relevant.

If you want to do it the other way around (check which files are in use by a process) you will need something like lsof. lsof is available from HP download centre.
Every problem has at least one solution. Only some solutions are harder to find.