Executing linux command using tsystem

Highlighted
Four Stars

Executing linux command using tsystem

Hi All,

I am trying to run the below Linux command through tsystem component.  But always i am getting no such file or directory error.  I checked the file in /home/talend path and the file is available with the required privilege. 

 

"ftp -n -s:/home/talend/ftpfile.txt FTP_Server"

 

Could you help me how to run this command through tsystem component connecting Linux server?

Thanks,

Arunachalam. S

Highlighted
Six Stars

Re: Executing linux command using tsystem

Can we see your error response in console please ?

And your component configuration.

Highlighted
Four Stars

Re: Executing linux command using tsystem

Hi,

Thanks for your reply.  The error is "No such file or directory"

I followed the step mentioned in the below link.  But I have got the same error

 

https://community.talend.com/t5/Design-and-Development/Executing-a-Linux-command-with-a-pipe-using-a...

 

Highlighted
Six Stars

Re: Executing linux command using tsystem

What is your objective ?

Get a file from a FTP ?

Highlighted
Four Stars

Re: Executing linux command using tsystem

Hi,

The objective is to extract the CDC data generated in AS400.  The below command should execute through ftp utility.  So placed all these commands in file and passed the file to ftp command as a argument.

 

user
username
Password
cd cdc
quote rcmd "cdc/RUNCDC FILE(schema/table) LIBOUT(app) MODE(*DETACHED) MBROPT(*ADD)"
quit

 

Highlighted
Six Stars

Re: Executing linux command using tsystem

Try to use tSSH component.
Put your password between "" like "password"

Put one command by line (see sreenshot)

Don't forget to escape the " caracter if needed like I do in the screenshot. ( \"  )

 

 

capture.JPG

Highlighted
Four Stars

Re: Executing linux command using tsystem

Hi

This might solve my problem Smiley Happy

Thanks for your reply.

 

Highlighted
Six Stars

Re: Executing linux command using tsystem

No problem Smiley Happy , if it works don't hesitate to validate the answer in order to put this response to the top of the post.

2019 GARTNER 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

Talend Cloud Developer Series – Fetching Studio License

This video will help someone new to using Talend Studio get started by connecting to Talend Cloud and fetching the Studio License

Watch Now

Talend Cloud Developer Series - Introduction

The Talend Cloud Developer Series was created to give you a solid foundational understanding of Talend’s Cloud Integration Platform

Watch Now

Talend Cloud Available on Microsoft Azure

An integration platform-as-a-serviceto help enterprises collect, govern, transform, and share data from any data sources

Watch Now