wpoa / open-access-media-importer

A tool for harvesting media files from Open Access articles for upload into Wikimedia Commons
http://commons.wikimedia.org/wiki/User:Open_Access_Media_Importer_Bot
23 stars 8 forks source link

Log the screen output #96

Open Daniel-Mietchen opened 11 years ago

Daniel-Mietchen commented 11 years ago

It would be good to have an option for the import scripts that would write not just to stdout but also into a log file (one each for doi and pmcid import).

That is generally useful for routine operation and could also help generate some stats (perhaps also on a routine basis), as per https://github.com/erlehmann/open-access-media-importer/issues/97 .

erlehmann commented 11 years ago

Would it be sufficient to just use the tee command on the output given by the commands? http://en.wikipedia.org/wiki/Tee_(command)

Daniel-Mietchen commented 11 years ago

I think so.