[jboss-as7-dev] How do I pipe the output of a command/operation to a file?

Vimal Kansal vkansal at redhat.com
Fri Jul 15 18:18:42 EDT 2011


Ok, so here is what I am trying to do :

(1) once I am inside jboss-admin console and connected to server, I can 
dump the jndi tree to the screen by doing this :

[standalone at localhost:9999 /] /subsystem=naming:jndi-view

but when I do this :

jboss-admin -c --command=/subsystem=naming:jndi-view

nothing happens.

Moreover, I think once I am inside the jboss-admin console, I should be 
able to pipe the ouput to a file i.e something like this

[standalone at localhost:9999 /] /subsystem=naming:jndi-view >  cli.log

Thx

Vimal

On 15/07/2011 4:59 PM, Alexey Loubyansky wrote:
> Although, as Emanuel suggested once, making '--command=' optional would
> simplify the syntax, e.g.
>
> ./jboss-admin.sh -c :read-resource>  cli.log
>
> I think I'll do it.
>
> On 07/15/2011 08:50 AM, Alexey Loubyansky wrote:
>> This works
>>
>> ./jboss-admin.sh -c --command=:read-resource>   cli.log
>>
>> Alexey
>>
>> On 07/14/2011 03:46 AM, Vimal Kansal wrote:
>>> Hi,
>>>
>>> I am using jboss-admin cli tool.  I am not sure as to how do I pipe the
>>> output of any command/operation to a file?
>>>
>>> Thx
>>>
>>> Vimal
>>>
>>> _______________________________________________
>>> jboss-as7-dev mailing list
>>> jboss-as7-dev at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
>> _______________________________________________
>> jboss-as7-dev mailing list
>> jboss-as7-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
> _______________________________________________
> jboss-as7-dev mailing list
> jboss-as7-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev



More information about the jboss-as7-dev mailing list