Hi - can someone help me on how to exit after the run program is invoked.. i wanted to perform someother action after the program starts.. but it is not exiting as the dialogue box halted with a message "Please Wait..."

<showprogressdialog> <abortonerror>0</abortonerror> <progresstext>${progressText}</progresstext> <title>Please Wait...</title> <actionlist> <runprogram> <program>sh</program> <programarguments>${installdir}/${smxVersion}/bin/servicemix</programarguments> <workingdirectory>${installdir}/</workingdirectory> </runprogram> </actionlist> </showprogressdialog>

asked 17 Jun '13, 07:58

jay's gravatar image

accept rate: 0%

The service is probably hanging. Could you check if using the below code fixes the issue?

     <title>Please Wait...</title>
            <programarguments>${installdir}/${smxVersion}/bin/servicemix >/dev/null 2>/dev/null</programarguments> 

answered 17 Jun '13, 10:14

juanjo's gravatar image

juanjo ♦♦
accept rate: 23%

I tested the above in both Linux and MacOS but still hanging.. it is not coming out from the run program..

I would be really appreciate if you could provide me some other solution..

(18 Jun '13, 05:18) jay

Does the process also hang when it is being run from shell? Can you also add </dev/null (in addition to >/dev/null 2>/dev/null) to the <programArguments>?

If the process should exit, but it is not doing it, usually it is because subprocessses have standard input, output or error open and this is why adding the redirections sometimes resolves the issue.

Also, from taking a quick look servicemix is an interactive console application (http://servicemix.apache.org/docs/5.0.x/quickstart/installation.html), so it seems reasonable that it does not exit.

(27 Jun '13, 03:45) wojciechka ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 17 Jun '13, 07:58

Seen: 781 times

Last updated: 27 Jun '13, 03:45