Skip to main content
Announcements
A fresh, new look for the Data Integration & Quality forums and navigation! Read more about what's changed.
cancel
Showing results for 
Search instead for 
Did you mean: 
pllopis
Contributor II

Run .bat file from tSystem which launch another powershell script doesn't work from TMC

Hi there,

I'm trying to run a .bat file from tSystem component which launch another powershell script (ps1 file). The problem is: if I run the .bat file directly from the server, it works. The powershell is started and do the action required within the script. But, if I execute the corresponding task (Talend job) from TMC, is does nothing. Why does it happen?

The job only has a tSystem component with the command to run .bat file. When executing from TMC, the task is running on the same server, so I don't understand why if I do that manually it works, but not works executing from the task.

I provide the evidence and the commands used in each file:

 

pllopis_0-1725523566838.png

pllopis_1-1725523742957.png

NOTE: If I run manually the .bat file it works and the action within the .ps1 file is made. So I guess the instructions used in the files are correct. Don't know why executing the job from TMC it does nothing.

pllopis_2-1725523908550.png

pllopis_3-1725524003389.png

Any help please?

Thanks!!

 

Labels (3)
0 Replies