Redirect std out inside console [message #965698] |
Wed, 31 October 2012 08:48  |
Eclipse User |
|
|
|
When executing a command inside the osgi console, I would like std out to be redirected to a file.
Is that supported somehow?
For instance
will list the state of all bundles.
I would like to redirect its output to a file inside the console itself (output of ss was just an example, I think of more complex third-parties commands).
|
|
|
|
Re: Redirect std out inside console [message #966716 is a reply to message #966695] |
Thu, 01 November 2012 03:00  |
Eclipse User |
|
|
|
Great, thanks, that works!
I had to provide a valid/full URI (e.g. file:///d:/tmp/out.txt), but it is ok.
I guess, stdin/stderr are supported in a similar way?
Lazar Kirchev wrote on Thu, 01 November 2012 02:36Hi,
If you are using Equinox 3.8/Eclipse 4.2, you could try piping to the tac command:
osgi> ss | tac <filename>
You can get a description of this command with "tac -?" or "tac --help".
HTH
Lazar
|
|
|
Powered by
FUDForum. Page generated in 0.04487 seconds