Hi Dan,

any progress on your problem?

Thanks in advance,

Siegfried Goeschl

> On 5 Jun 2017, at 12:36, Siegfried Goeschl <siegfried.goes...@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 <golfd...@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 <ameyjad...@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 <golfd...@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-unsubscr...@commons.apache.org
>>> 
>>> For additional commands, e-mail: dev-h...@commons.apache.org
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
>> For additional commands, e-mail: user-h...@commons.apache.org
>> 
> 


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

Reply via email to