ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: Alan Clifford on January 02, 2013, 05:28:09 PM

Title: Use of uninitialized value $tmpFile
Post by: Alan Clifford on January 02, 2013, 05:28:09 PM
Hi Phil

Use of uninitialized value $tmpFile in utime at /usr/local/bin/exiftool line 2804.
Error setting file time - ahc_4829_cr2_800.jpg
    1 image files updated
Use of uninitialized value $tmpFile in utime at /usr/local/bin/exiftool line 2804.
Error setting file time - ahc_4829_cr2_800.jpg


exiftool version 9.10.  This is on a new macbook pro

I copied my scripts and photo to my old macbook with snowleopard, exiftool version 8.58 and didn't get the error.

I haven't identified which line in my script is doing this - I'll get back to you with the exact command line.  I may be missing something on the new computer.

Alan
Title: Re: Use of uninitialized value $tmpFile
Post by: Alan Clifford on January 02, 2013, 05:37:14 PM
I don't get an error without an argfile so this is probably the command line.  Investigating further.

  # process the argfile
  if [ "${ARGFILE}" ]; then
    echo "exiftool argfile is: ${ARGFILE}" >&2
    exiftool -m -P -@ "${ARGFILE}" "${xmpphoto}" >&2
  fi
Title: Re: Use of uninitialized value $tmpFile
Post by: Alan Clifford on January 02, 2013, 05:47:45 PM
alan@egremont:scripts-test$ exiftool -m -P -@ keywordsbathsheba.args ahc_4829_cr2_800.jpg
Use of uninitialized value $tmpFile in utime at /usr/local/bin/exiftool line 2804.
Error setting file time - ahc_4829_cr2_800.jpg
    1 image files updated
Use of uninitialized value $tmpFile in utime at /usr/local/bin/exiftool line 2804.
Error setting file time - ahc_4829_cr2_800.jpg


The argfile is attached.

Not sure what to look for next.
Title: Re: Use of uninitialized value $tmpFile
Post by: Phil Harvey on January 02, 2013, 07:19:23 PM
Hi Alan,

Thanks for pointing this out.  (Too bad you just missed the 9.11 release though. :( )

I'll release an update tonight, and version 9.12 should fix this.  The problem was introduced in version 9.10 and occurs when -P is combined with some arguments (including -overwrite_original_in_place).

- Phil
Title: Re: Use of uninitialized value $tmpFile
Post by: Alan Clifford on January 03, 2013, 11:03:56 AM
Thanks Phil.

Alan