[OSM-dev] How to make osm2pgsql quiet?
jochen at remote.org
Wed Dec 19 13:29:24 GMT 2012
On Wed, Dec 19, 2012 at 01:19:13PM +0000, Svavar Kjarrval wrote:
> I was wondering what methods you use to make osm2pgsql be quiet when run
> by crontab. It is very annoying to receive a everything-is-normal
> message every time I run it. I run it from within a shellscript since I
> need to execute other commands before and after it runs.
> Internet search resulted in a github fork where somebody implemented
> a quiet support but hasn't been accepted into the main distribution. I
> tried the -q, --quiet and --silent parameters. I also tried to stick '>
> /dev/null' and '> /dev/null 2>&1' at the end of the osm2pgsql command
> within the shellscript with no effect.
Are you sure you did that redirection correctly? As it is the shell doing
it and not osm2pgsql I can't imagine that a redirect to /dev/null doesn't
work. (I'd redirect into a log file instead, so you can see problems btw.)
Jochen Topf jochen at remote.org http://www.remote.org/jochen/ +49-721-388298
More information about the dev