Forum Bugs

Using --silent --server is not silent

schlick
A minor annoyance...

The options that we use are something like:

prince --silent --server --log=prince.log filename.html

This outputs to the command line:

fin|success

And to the logfile:

Thu Apr  7 13:10:35 2011: ---- begin
Thu Apr  7 13:10:35 2011: Loading document...
Thu Apr  7 13:10:35 2011: Converting document...
Thu Apr  7 13:10:35 2011: finished: success
Thu Apr  7 13:10:35 2011: ---- end

Preferably I'll like the --silent option to silence the fin|success line too. Was this by design or simply an oversight? I can deal with it by redirecting standard out to /dev/bull on the command line but in this case I'm using a third party plugin which I can't readily change. It just seemed to me that the --silent option wasn't entirely fulfilling its purpose.

Thanks,

Michael.

P.S: I'm using Prince 7.1
mikeday
This is actually intentional. The --silent option disables all error and warning messages on stderr to avoid deadlocks when the calling process is waiting on output from stdout. However, when the PDF output is complete, the calling process can check stderr for a final indication of success or failure. Adding a redirection to the /usr/bin/prince shell script that calls the Prince binary would be the easiest way to ignore this, or just run Prince with --silent and not --server.