0

I am writing an OSX command line which will run EXIFTool thousands of times against individual images. Sometimes the commands fail and its very difficult to see where its failing because it doesn't list which line.

Here is how my .command file looks:

exiftool - ABC
exiftool - DEF
exiftool = GHI

Here is how the output looks when successful:

/Users/User/Desktop/script.command ; exit;
    1 image files updated
    1 image files updated
    1 image files updated
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
Deleting expired sessions...258 completed.

How can I get it to tell me which command ran before the output?

Thank you!

AAA
  • 2,388
  • 9
  • 32
  • 47

0 Answers0