[wpkg-users] Command with pipe character

Ben Hartmann ben.hartmann at uk.om.org
Fri Nov 21 12:42:01 CET 2008


Hi Andreas,
try this:

"echo Yes | "%ProgramFiles%\OpenOffice.org 2.4\program\unopkg.com" add
--shared %SOFTWARE%\openoffice\extension.oxt"

I had this problem in the past, too. But with this modification all my "wpkg-scripts"
are running very well.

Bye,
Ben


Andreas Heinlein wrote:
> Hello,
>
> I need to deploy an extension for OpenOffice.org. This can be done
> silently with
> "...\OpenOffice.org\program\unopkg.com add --shared <extension>.
>
> However, this extension requires to accept a license, so I found that a
> silent install would need to look like
> "echo Yes | "%ProgramFiles%\OpenOffice.org 2.4\program\unopkg.com" add
> --shared %SOFTWARE%\openoffice\extension.oxt"
>
> This works on the command line, and I entered it like above in the WPKG
> web frontend, but via WPKG it does not work. Looking at the logs I found
> that the pipe character got escaped, it said
> "Command 'echo Yes \| "%ProgramFiles%\OpenOffice.org
> 2.4\program\unopkg.com" add --shared
> %SOFTWARE%\openoffice\extension.oxt' was not successful | The system
> cannot find the file specified". But on the command line it works even
> with the escape, so what could be the problem? And yes, I am sure that
> %SOFTWARE% is set correctly.
>
> Bye,
> Andreas
>
> -------------------------------------------------------------------------
> wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
> _______________________________________________
> wpkg-users mailing list
> wpkg-users at lists.wpkg.org
> http://lists.wpkg.org/mailman/listinfo/wpkg-users
>
>   



More information about the wpkg-users mailing list