1998.07.09 15:54 "Re: tiffsplit in a cronjob", by Doug Vander Wilt
i have a cronjob running every morning using the tiffsplit command (from tifflib on DEC unix) to count the number of files in several 100 multi-page tiffs that are transferred into our storage. then i count the number of "xfiles" formed.
problem: i always get a count of 0. however when i run the same cronjob manually on the exact same files, it splits the files and counts the xfiles accurately. any ideas why? or is there a more efficient way to figure out how many files are in a multipage tiff?
This is the quickest way I've found to count pages, assuming each directory represents a separate page:
tiffinfo $FILE 2>/dev/null | fgrep 'TIFF Directory at offset' | wc -l
Doug Vander Wilt
Honeywell MICRO SWITCH Division