[resolved] Execution of batch file using Talend which is running on Linux

[resolved] Execution of batch file using Talend which is running on Linux

Hi All,
I want to run the windows batch file using Talend (Talend DI / TAC). Talend DI / TAC is running on Linux Machine.

Any Suggestions/help is much appreciated.


Thanks,
Siva

Accepted Solutions
Highlighted
Seventeen Stars

Re: [resolved] Execution of batch file using Talend which is running on Linux

Running a Windows batch file on a Linux maschine?? The problem is not Talend, the problem is this strange idea! What could a windows batch do what a linux shell script or even better a Java based Talend job could not do?
If you really need this Windows script try the Windows environment for Linux called "wine".

All Replies
Community Manager

Re: [resolved] Execution of batch file using Talend which is running on Linux

Create a DI job and use a tsystem component to run the batch file, schedule the job on Job Conductor of TAC.
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business

Re: [resolved] Execution of batch file using Talend which is running on Linux

Hi Shong,
Thanks for your response.
If I use the tSystem Component, When I run the talend job from TAC which is running on linux machine. It will consider the System as linux host and it won't execute the batch file in linux system.
Correct me If I'm wrong.

Regards,
Siva
Community Manager

Re: [resolved] Execution of batch file using Talend which is running on Linux

Hi Siva
Is it possible to move the batch file from windows to Linux machine? or create a job to fetch it to Linux machine via FTP, Http or SCP protocol before executing it?
If the batch file has to be on windows machine, you can try to set a UNC path, see
http://www.talendforge.org/bugs/view.php?id=15485

Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business

Re: [resolved] Execution of batch file using Talend which is running on Linux

Hi Shong,
I can able get the file in linux machine.
But my doubt is, Is tSystem component is dependent on the Operating System (Windows/Linux) ?. If so, how it will run the windows batch file(which internally invokes some reports) in Linux machine.

Thanks,
Siva
Highlighted
Seventeen Stars

Re: [resolved] Execution of batch file using Talend which is running on Linux

Running a Windows batch file on a Linux maschine?? The problem is not Talend, the problem is this strange idea! What could a windows batch do what a linux shell script or even better a Java based Talend job could not do?
If you really need this Windows script try the Windows environment for Linux called "wine".

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Agile Data lakes & Analytics

Accelerate your data lake projects with an agile approach

Watch