Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

DennisBlah

macrumors 6502
Original poster
Dec 5, 2013
485
2
The Netherlands
Hi all,

I'm looking for a solution to see if a file is still being processed at the moment when listing files of a folder.

While copying a large file, I can already see the file in terminal in the target folder.

how can I see in terminal if the file is being copied?
In the GUI I see that the file is 'gray'

How can I see this in Terminal?

Thanks!!!
 

ScoobyMcDoo

macrumors 65816
Nov 26, 2007
1,188
37
Austin, TX
There is probably a better way, but you could probably get by using the lsof command. if you are in the folder, just type:

Code:
lsof ./

which should list any open files in the current directory.
 

DennisBlah

macrumors 6502
Original poster
Dec 5, 2013
485
2
The Netherlands
Hi Scooby,

thanks for your reply, but this is a load of stuff comming on the screen,
and can't find anything related to a file I'm currently copying.

Currently I'm looping every 5 seconds, to see if the size of a file is changing, if not, its ready, and I can start importing it to some database.

Thanks again!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.