You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Dan C <go...@hotmail.com> on 2017/06/01 15:03:05 UTC

[EXEC] Question

Now that I think I’m a registered user, is the the proper way to submit a question on the Apache Commons Exec code??

Re: [EXEC] Question

Posted by Siegfried Goeschl <si...@it20one.com>.
Hi Dan,

any progress on your problem?

Thanks in advance,

Siegfried Goeschl

> On 5 Jun 2017, at 12:36, Siegfried Goeschl <si...@it20one.com> wrote:
> 
> Hi Dan,
> 
> some thoughts along the line
> 
> * Just to make sure - you are running NOT on Windows?
> * are you redirecting streams within your Java code and the Bash scripts? If so, can you get rid of them? I vaguely remember issues where a process was killed by the ExecuteWatchdog but hang on a re-directed stream
> * do you have more information regarding the “ExecuteWatchdog” problem - maybe some code snippet to reproduce the issues
> 
> Thanks in advance,
> 
> Siegfried Goeschl
> 
> 
>> On 1 Jun 2017, at 18:26, Dan C <go...@hotmail.com> wrote:
>> 
>> Thanks for the reply!!
>> 
>> Here’s my situation:
>> I’m using the Apache Commons Exec version 1.3 code to call a bash script (which in turn calls one or more bash scripts).  In most cases, everything works and the calling Java code gets a response.  However, on some occasions, the call to DefaultExecutor’s execute method never returns (I’m calling one of the synchronous execute methods) …
>> 
>> I have tracing in the bash scripts which indicate that they have finished.  
>> Also, I am using the ExecuteWatchdog class, but it doesn’t recognize the fact that my timeout has been exceeded.
>> 
>> So, I’m looking for the following :
>> - Some help (tips/tricks/what to look for/at) with how to debug my problem.
>> - A good clear example of how to use the Apache Commons Exec for
>>   - a synchronous call to a bash script
>>   - an asynchronous call to a bash script   
>> 
>> Thanks in advance for any help!!
>> 
>>> On Jun 1, 2017, at 11:26 AM, Amey Jadiye <am...@gmail.com> wrote:
>>> 
>>> Hi Dan,
>>> 
>>> You can post the question directly on mailing list. With questions you can
>>> give some references like Github gist or link to github commits url.
>>> 
>>> Regards,
>>> Amey
>>> 
>>> On Thu, Jun 1, 2017 at 8:33 PM, Dan C <go...@hotmail.com> wrote:
>>> 
>>>> Now that I think I’m a registered user, is the the proper way to submit a
>>>> question on the Apache Commons Exec code??
>>> 
>>> 
>>> 
>>> 
>>> -- 
>>> 
>>> ---------------------------------------------------------------------
>>> 
>>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>>> 
>>> For additional commands, e-mail: dev-help@commons.apache.org
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
>> For additional commands, e-mail: user-help@commons.apache.org
>> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Re: [EXEC] Question

Posted by Siegfried Goeschl <si...@it20one.com>.
Hi Dan,

some thoughts along the line

* Just to make sure - you are running NOT on Windows?
* are you redirecting streams within your Java code and the Bash scripts? If so, can you get rid of them? I vaguely remember issues where a process was killed by the ExecuteWatchdog but hang on a re-directed stream
* do you have more information regarding the “ExecuteWatchdog” problem - maybe some code snippet to reproduce the issues

Thanks in advance,

Siegfried Goeschl


> On 1 Jun 2017, at 18:26, Dan C <go...@hotmail.com> wrote:
> 
> Thanks for the reply!!
> 
> Here’s my situation:
> I’m using the Apache Commons Exec version 1.3 code to call a bash script (which in turn calls one or more bash scripts).  In most cases, everything works and the calling Java code gets a response.  However, on some occasions, the call to DefaultExecutor’s execute method never returns (I’m calling one of the synchronous execute methods) …
> 
> I have tracing in the bash scripts which indicate that they have finished.  
> Also, I am using the ExecuteWatchdog class, but it doesn’t recognize the fact that my timeout has been exceeded.
> 
> So, I’m looking for the following :
> - Some help (tips/tricks/what to look for/at) with how to debug my problem.
> - A good clear example of how to use the Apache Commons Exec for
>    - a synchronous call to a bash script
>    - an asynchronous call to a bash script   
> 
> Thanks in advance for any help!!
> 
>> On Jun 1, 2017, at 11:26 AM, Amey Jadiye <am...@gmail.com> wrote:
>> 
>> Hi Dan,
>> 
>> You can post the question directly on mailing list. With questions you can
>> give some references like Github gist or link to github commits url.
>> 
>> Regards,
>> Amey
>> 
>> On Thu, Jun 1, 2017 at 8:33 PM, Dan C <go...@hotmail.com> wrote:
>> 
>>> Now that I think I’m a registered user, is the the proper way to submit a
>>> question on the Apache Commons Exec code??
>> 
>> 
>> 
>> 
>> -- 
>> 
>> ---------------------------------------------------------------------
>> 
>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>> 
>> For additional commands, e-mail: dev-help@commons.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Re: [EXEC] Question

Posted by Dan C <go...@hotmail.com>.
Thanks for the reply!!

Here’s my situation:
I’m using the Apache Commons Exec version 1.3 code to call a bash script (which in turn calls one or more bash scripts).  In most cases, everything works and the calling Java code gets a response.  However, on some occasions, the call to DefaultExecutor’s execute method never returns (I’m calling one of the synchronous execute methods) …

I have tracing in the bash scripts which indicate that they have finished.  
Also, I am using the ExecuteWatchdog class, but it doesn’t recognize the fact that my timeout has been exceeded.

So, I’m looking for the following :
 - Some help (tips/tricks/what to look for/at) with how to debug my problem.
 - A good clear example of how to use the Apache Commons Exec for
    - a synchronous call to a bash script
    - an asynchronous call to a bash script   

Thanks in advance for any help!!

> On Jun 1, 2017, at 11:26 AM, Amey Jadiye <am...@gmail.com> wrote:
> 
> Hi Dan,
> 
> You can post the question directly on mailing list. With questions you can
> give some references like Github gist or link to github commits url.
> 
> Regards,
> Amey
> 
> On Thu, Jun 1, 2017 at 8:33 PM, Dan C <go...@hotmail.com> wrote:
> 
>> Now that I think I’m a registered user, is the the proper way to submit a
>> question on the Apache Commons Exec code??
> 
> 
> 
> 
> -- 
> 
> ---------------------------------------------------------------------
> 
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> 
> For additional commands, e-mail: dev-help@commons.apache.org


Re: [EXEC] Question

Posted by Amey Jadiye <am...@gmail.com>.
Hi Dan,

You can post the question directly on mailing list. With questions you can
give some references like Github gist or link to github commits url.

Regards,
Amey

On Thu, Jun 1, 2017 at 8:33 PM, Dan C <go...@hotmail.com> wrote:

> Now that I think I’m a registered user, is the the proper way to submit a
> question on the Apache Commons Exec code??




-- 

---------------------------------------------------------------------

To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org

For additional commands, e-mail: dev-help@commons.apache.org