Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tSystem not getting stop

Hi,

I'm using tSystem component to check weather Karaf is running or not with below command

 

cmd /c C:/Talend/runtime/bin/client.bat -h servername

 

After running this command, job is not getting stopped. So I have used parallel component.

 

 

 

tParallel--->tSystem---onsubjobError---tdie

|

|---------------->tsleep(20sec)----tjava(check that job is going to be killed manually)---->tdie (In this subjob, its concluded karaf is running)

 

But this completes in one hour...dont know why ?

 

 

Can anyone suggest me why its happening ? Or any other option to stop tSystem ?

 

Thanks

 

 

 

Labels (3)
7 Replies
fdenis
Master
Master

I think than your batch did not get out.
just try with an echo.
Anonymous
Not applicable
Author

@fdenisCan you please explain more...? What should I do or try exactly ...?

fdenis
Master
Master

just try with "echo bonjour" in your command line.

what is the result of "C:/Talend/runtime/bin/client.bat -h servername" in a cmd window.

PS: you did not need cmd \c on tSystem
Anonymous
Not applicable
Author

It shows Karaf started and goes into karaf console like below..

karaf@trun()>

 

Moreover , even after tdie, job is still running...!

 

fdenis
Master
Master

using tSystem you assume your command line get out cleanly.
Anonymous
Not applicable
Author

@fdenisHow can I stop my job the moment tdie executes ?

fdenis
Master
Master

just kill it in windows task manager.

try your .bat file. you need to add an exit command at the end.