Processing files

Discussion in 'macOS' started by DennisBlah, May 19, 2015.

  1. DennisBlah macrumors 6502

    DennisBlah

    Joined:
    Dec 5, 2013
    Location:
    The Netherlands
    #1
    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!!!
     
  2. ScoobyMcDoo macrumors 65816

    Joined:
    Nov 26, 2007
    Location:
    Austin, TX
    #2
    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.
     
  3. DennisBlah thread starter macrumors 6502

    DennisBlah

    Joined:
    Dec 5, 2013
    Location:
    The Netherlands
    #3
    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!
     

Share This Page