I need a quick shell script, bash probably, but whatever that will endlessly loop through watching a directory, and convert any files that come into it to a pdf. Don't worry about any error checking. I command line flags so I can set the loop time in seconds, the directory to watch and the directory to put the files into... I'll be running many copies of it at once if it matters.
I should be able to call it like this:
tiffwatch -t 10 -s ./sourcedir -d ./destinationdir
It should call tiff2pdf $1 -o $2 which will do the conversion, I already have that working.
I just need help with the loop I guess... I dont' have time to look it all up.