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

Announcements
April 13–15 - Dare to Unleash a New Professional You at Qlik Connect 2026: Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
_AnonymousUser
Specialist III
Specialist III

Shell Script to execute commands under Talend

Hi All,
I have a requirement to automate the installation and starting of jar files using ./trun.
Right now we are doing it using the by manually going into ./trun and then execute the commands like.
1. install mvn:com.abc/abc.xyz/1.0.0-SNAPSHOT
Please help me automating this.
Regards,
Vaibhav
Labels (2)
4 Replies
Anonymous
Not applicable

Hi
Which version of TOS do you use?
What's your aim to use shell script?
Regards,
Pedro
_AnonymousUser
Specialist III
Specialist III
Author

Hi,
We are using TESB_SE-V5.1.1. The aim is to automate the deployment of jars inside the TESB (Talend) container without any manual intervention in linux.
I have to ingest feeds in every 2 hours, and everytime we have to execute the same commands.
Please help.
Right now we are using it like this :
# ./trun
karaf@trun> list
karaf@trun> install mvn:com.abc/platform.core/1.0.0-SNAPSHOT
and 5 more like this. We need to automate this.
_AnonymousUser
Specialist III
Specialist III
Author

Can this be done in any way ...
Please help
Regards,
Vaibhav
Anonymous
Not applicable

I assume you are using the ESB SE and hence do not have access to the commercial subscription with TAC? TAC includes a scheduler function which will work fine for jobs deployed to the ESB.
Are you using Routes (authored with Mediation perspective) or Jobs (authored with Integration perspective)? Sounds like Jobs. You have a few other alternatives.
The cTalendJob component is available in Mediation perspective. You could create a route that goes from a a timer component to a cTalendJob component. See http://camel.apache.org/timer.html or http://camel.apache.org/quartz.html for details on how to configure a Camel timer component. In Mediation perspective you can use the generic cMessageEndpoint to configure these.
Alternatively, you could use a cFile component along with the same cTalendJob and use a separate cron process to create a file in the directory that was being monitored by the cFile component.
Finally, you could use more complex Job components to create a long running job process that waits for a trigger file and then launches a separate job using tWaitForFile and tWaitForFile along with a cron process. You can find description of these components in the Components Reference Guide.