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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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.
Labels (3)
6 Replies
Anonymous
Not applicable
Author

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
Anonymous
Not applicable
Author

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

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
Anonymous
Not applicable
Author

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

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
Anonymous
Not applicable
Author

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