Executing several commands in non-interactive-mode
Forum » projects / jmxterm » Executing several commands in non-interactive-mode
Started by: Sven Schliesing (guest)
On: 1258548126|%e %b %Y, %H:%M %Z|agohover
Number of posts: 2
rss icon RSS: New posts
Executing several commands in non-interactive-mode
Sven Schliesing (guest) 1258548126|%e %b %Y, %H:%M %Z|agohover

Hi,

I'd like to execute several commands when using Jmxterm in non-interactive-mode. First I'd like to connect (via "open") and then I'd like to get the value of a mbean. I tried

echo "open 7358; get  java.lang:type=Runtime Name"  | java -jar jmxterm-1.0-alpha-4-uber.jar -n

but didn't succeed. Cause I only have the pid of the process I'm not able to open the connection with "-l". Besides that also wouldn't help me with executing other commands than "open".

Many thanks in advance!

Sven

Reply  |  Options
Unfold Executing several commands in non-interactive-mode by Sven Schliesing (guest), 1258548126|%e %b %Y, %H:%M %Z|agohover
Re: Executing several commands in non-interactive-mode
Jiaqi (guest) 1259585778|%e %b %Y, %H:%M %Z|agohover

I should document it somewhere. The delimiter is &&, not ;

Reply  |  Options
Unfold Re: Executing several commands in non-interactive-mode by Jiaqi (guest), 1259585778|%e %b %Y, %H:%M %Z|agohover
New Post
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License