Skip to main content
Announcements
A fresh, new look for the Data Integration & Quality forums and navigation! Read more about what's changed.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Cat file in a variable

Hi,

I have a Tssh component which fires a cat command to a file

eg: cat file1.txt

 

Now I need to save the file1.txt components in a string variable. How can i achieve this?

 

Thanks

Ajinkya

Labels (2)
1 Solution

Accepted Solutions
vapukov
Master II

Hi,

 

yes, you can

select checkbox for save output to variable

0683p000009M4jw.png

 

and use

((String)globalMap.get("tSSH_1_STDOUT"))

View solution in original post

2 Replies
vapukov
Master II

Hi,

 

yes, you can

select checkbox for save output to variable

0683p000009M4jw.png

 

and use

((String)globalMap.get("tSSH_1_STDOUT"))
Anonymous
Not applicable
Author

Okay, it is working now.

Thanks.

Earlier I had not selected to store the output on global variable.

After doing that, I am able to store the output to a String.

Thanks!!!