unopkg.com on Windows - Unable to redirect stdout/stderr to file or read it via pipes (Windows).

View: New views
3 Messages — Rating Filter:   Alert me  

unopkg.com on Windows - Unable to redirect stdout/stderr to file or read it via pipes (Windows).

by Jan Holst Jensen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am writing a setup application for an extension on Windows. I want to
run unopkg.com from within my setup application but I seem unable to
read any output from it in case it fails. My setup application is unable
to get any output from the normal stdout and stderr pipes when doing e.g.

  unopkg.com blabla

When running the above command interactively in a command prompt I do
get an error message back. However, when running it interactively and
trying to redirect e.g. stdout by

  unopkg.com blabla > c:\temp\unopkg_log.txt

the result is nothing at all - neither on screen nor in
c:\temp\unipkg_log.txt (zero bytes).

I also tried the --log-file option but that does not redirect the error
messages so I cannot detect success or failure that way.

Is this something that should be filed as a bug or is there some secret
workaround ?

Observed on Windows XP with OpenOffice.org 3.1.0 (build 9399) and also
DEV300_m50.

Kind regards
-- Jan Holst Jensen

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


Re: unopkg.com on Windows - Unable to redirect stdout/stderr to file or read it via pipes (Windows).

by Joachim Lingner - Sun Germany Software Engineer - ham02 - Hamburg :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I think this is a bug. See
http://www.openoffice.org/issues/show_bug.cgi?id=102854

Regards,
Joachim

Jan Holst Jensen schrieb:

> I am writing a setup application for an extension on Windows. I want
> to run unopkg.com from within my setup application but I seem unable
> to read any output from it in case it fails. My setup application is
> unable to get any output from the normal stdout and stderr pipes when
> doing e.g.
>
>  unopkg.com blabla
>
> When running the above command interactively in a command prompt I do
> get an error message back. However, when running it interactively and
> trying to redirect e.g. stdout by
>
>  unopkg.com blabla > c:\temp\unopkg_log.txt
>
> the result is nothing at all - neither on screen nor in
> c:\temp\unipkg_log.txt (zero bytes).
>
> I also tried the --log-file option but that does not redirect the
> error messages so I cannot detect success or failure that way.
>
> Is this something that should be filed as a bug or is there some
> secret workaround ?
>
> Observed on Windows XP with OpenOffice.org 3.1.0 (build 9399) and also
> DEV300_m50.
>
> Kind regards
> -- Jan Holst Jensen
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@...
> For additional commands, e-mail: dev-help@...
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


Re: unopkg.com on Windows - Unable to redirect stdout/stderr to file or read it via pipes (Windows).

by Jan Holst Jensen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks Jochen. I'll see if I can detect package install errors using the
return code of the process instead. If not, I'll add comments directly
to the issue.

Cheers
-- Jan

Jochen wrote:

> I think this is a bug. See
> http://www.openoffice.org/issues/show_bug.cgi?id=102854
>
> Regards,
> Joachim
>
> Jan Holst Jensen schrieb:
>> I am writing a setup application for an extension on Windows. I want
>> to run unopkg.com from within my setup application but I seem unable
>> to read any output from it in case it fails. My setup application is
>> unable to get any output from the normal stdout and


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...