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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Arunachalam
Contributor
Contributor

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

Labels (3)
7 Replies
Théo_Cap
Contributor III
Contributor III

Can we see your error response in console please ?

And your component configuration.

Arunachalam
Contributor
Contributor
Author

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...

 

Théo_Cap
Contributor III
Contributor III

What is your objective ?

Get a file from a FTP ?

Arunachalam
Contributor
Contributor
Author

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

 

Théo_Cap
Contributor III
Contributor III

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. ( \"  )

 

 

0683p000009LrjK.jpg

Arunachalam
Contributor
Contributor
Author

Hi

This might solve my problem 0683p000009MACn.png

Thanks for your reply.

 

Théo_Cap
Contributor III
Contributor III

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