strider1551 / djvubind

Combine multiple image files into an optimally compressed djvu file.
19 stars 6 forks source link

deliver output messages in stdout #9

Closed boredland closed 9 years ago

boredland commented 9 years ago

Hi there,

you've got some fancy percentage-display for the progress report - which is of course useful if you're working single files. Since in my case big amounts of data are to be processed I'd rather like to stream that into logfiles during my batch processing.

exec > >(tee $(date +%F)_$(date +"%I-%M-%S")_main_log.txt)
exec 2>&1

But sadly that isn't the case. Any ideas? P.S: I invoke djvubind in my script in the according folder with djvubind -v and it runs perfectly.

strider1551 commented 9 years ago

I'm afraid you're beyond my skills in the terminal with exec and tee. Most of the messages are just python's print() with a \r at the end to send the cursor back to the start of the line (and update the status as it goes). Warnings and errors get sent to stderr.

Frenzie commented 9 years ago

@boredland When you say that isn't the case, what exactly isn't the case? The use \r suggests that you should at least get something, even if it's just the conclusion. ;)