SSH_1 how to get output based on the commands line

Six Stars

SSH_1 how to get output based on the commands line

SSH_1 how to get output based on the commands line .

 

we use two commands like ,

 

1)pwd

2)df -h

 

So ,we get output totally by using ((String)globalMap.get("tSSH_1_STDOUT")) 

 

We want take output like "pwd" separate and "df -h" separate .


Accepted Solutions
Sixteen Stars TRF
Sixteen Stars

Re: SSH_1 how to get output based on the commands line

Hi,

I'm afraid you can't split output. You need to consider 1 SSH call = 1 output, no matter the number of command to execute.

A workaround should be to redirect the output to a file (or a file for each command), then to read the file from your job.


TRF

View solution in original post


All Replies
Sixteen Stars TRF
Sixteen Stars

Re: SSH_1 how to get output based on the commands line

Hi,

I'm afraid you can't split output. You need to consider 1 SSH call = 1 output, no matter the number of command to execute.

A workaround should be to redirect the output to a file (or a file for each command), then to read the file from your job.


TRF

View solution in original post

Six Stars

Re: SSH_1 how to get output based on the commands line

Yeah we accept!! Its cannot split we can find the solution for another way to get the output based on the multiple commands !!!

Thanks a lot,

Ashok M

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

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog