• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » Job in command line, manually execution

#1 2008-05-07 14:31:25

suzchr
Member
Registered: 2008-04-30
Posts: 147

Job in command line, manually execution

Hi,
I have a project with a lot of jobs. I need to control the execution of the job manually with an Intranet web site.
However, my solution needs to create bat file automatically. So I look the cron command and the instructions send don't use  the jar file generate by "Export script job".
So how I can create bat files with using this model ? I want execute job in command line without create an Export script job before.

Thx

Offline

#2 2008-05-08 04:37:47

shong
Talend team
Registered: 2007-08-29
Posts: 10303
Website

Re: Job in command line, manually execution

Hello

However, my solution needs to create bat file automatically.

You can't create the bat file automatically. If you wanna execute serval jobs, you can create a father job and use tRunJob components to run all the child jobs.(for example, tRunJob--OnSubOK-->tRunJob...), then only export the father job scripts manually.
After exporting the job scripts, you can click on the bat file ro run the job or put the job scripts on webserver and run it. (see [Forum, topic 1686] how to use jasperETL in my WebApp ?)

So I look the cron command and the instructions send don't use  the jar file generate by "Export script job".

After exporting the job scripts, there are some jar files like systemRoutines.jar in the lib folder. And you can see the bat file use these jar file:

Code:

java -Xms256M -Xmx1024M -cp ../lib/systemRoutines.jar;../lib/userRoutines.jar;.;test_0_1.jar;childbjo_0_1.jar;../lib; shongdemo.test_0_1.test --context=Default

Best regards

         shong


Email:shong@talend.com
Choose Talend, Enjoy Talend!
New & Event: Talend Help Center
Talend-->the leader of open source data management and application integration solutions!

Offline

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » Job in command line, manually execution

Board footer

Powered by FluxBB