One Star

execution perl scripts

Does Talend have the ability to execute a perl script that was written outside of Talend?
For example can I create a job that calls any random perl script and executes that script?
I want to write the Talend job in Java.
6 REPLIES
Community Manager

Re: execution perl scripts

Hi
Yes, it is possible, you can use a tSystem comonent to execute the command as below in a Java job.
"cmd /c perl FilePath/example.pl"
Note that, there should be a perl installation on the machine and set <perl installation path>/bin to the system variable PATH.
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: execution perl scripts

I am assuming I do not need the "cmd /c" since I am using Linux. just "./example.pl"
Community Manager

Re: execution perl scripts

I am assuming I do not need the "cmd /c" since I am using Linux. just "./example.pl"

Hi
Yes, you are right, on linux platform,
"perl filepath/example.pl"
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: execution perl scripts

Is there a way to execute standalone perl scripts that are on a different server then the execution server using tSystem component?
Community Manager

Re: execution perl scripts

Is there a way to execute standalone perl scripts that are on a different server then the execution server using tSystem component?

No, but I think we could develop a component call tPerl just like the tPerl component in Perl project.
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
Employee

Re: execution perl scripts

You can use tSSH component to run any program (perl or not) on a distant server