Command line in Talend to call Unix based operating system

Six Stars

Command line in Talend to call Unix based operating system

Hello,

 

Anyone calls the Unix based server and get the file using SFTP?

 

Currently I am using 7Z command line to get the file from SFTP, but in real time clients has the data in Unix based environment.

 

"cmd /c 7z.exe x C:/Users/deepakg/input/*.zip -oC:/Users/deepakg/output/"+TalendDate.getDate("yyyy-MM-dd")+" -y"

 

Regards,

Deepak

Seven Stars

Re: Command line in Talend to call Unix based operating system

Hi Deepak ,

 

Talend provides FTP components like tFTPGet , tFTPConnection , tFTPPut and etc. By using these components we can pull files from FTP server and load.

 

 

Thanks & Regards
A Ravi Kumar
Mobile Number : +91 852-762-1083
Email-id : a.ravikumar104@gmail.com
Skype Id : ammanannaravikumar
Six Stars

Re: Command line in Talend to call Unix based operating system

Hello Ravi,

 

I would need the command line for unix box to unzip the files. 

 

Just like using 7z we can do the unzip the zip file. The same way I need it for unix.

 

Regards,

Deepak

Seven Stars

Re: Command line in Talend to call Unix based operating system

Hi Deepak,

 

You can use unzip command. If you want to execute it from Talend use tsystem component.

 

Example :

1) sudo unzip file.zip or sudo unzip folder_path/text.zip -d test_folder.

 

 

Thanks & Regards
A Ravi Kumar
Mobile Number : +91 852-762-1083
Email-id : a.ravikumar104@gmail.com
Skype Id : ammanannaravikumar