Home » Infrastructure » Unix » File Status while file is still coming in
File Status while file is still coming in [message #98552] Wed, 29 December 2004 10:24 Go to next message
ashok k rathi
Messages: 4
Registered: December 2004
Junior Member
Is there any way to know in system A whether the file is half way done if the file is being ftped from system A to system B .
I need to verify the count wc -l {file name } and this command shows a 0 while the file is coming in.

I do check for the existence of file . Checking for size 0 is not a solution

Thanks
Ashok
Re: File Status while file is still coming in [message #98555 is a reply to message #98552] Thu, 30 December 2004 01:19 Go to previous messageGo to next message
Frank Naude
Messages: 4581
Registered: April 1998
Senior Member
Hi,

Why is checking for size 0 not a solution?

You may also want to use "fuser" to see if the file is still in use by FTP (or any other program).

Best regards.

Frank
Re: File Status while file is still coming in [message #98560 is a reply to message #98555] Mon, 03 January 2005 06:23 Go to previous message
ashok k rathi
Messages: 4
Registered: December 2004
Junior Member
Actually, I get a file sometime with 0 bytes also . In that case the check is not going to work

Exactly what option in fuser

when i am doing fuser {filename} it is just displaying
as

filename:

while my file is opened using other session
Previous Topic: ORA-24370
Next Topic: ORA-12520
Goto Forum:
  


Current Time: Tue Nov 26 03:10:10 CST 2024