
Anonymous
Not applicable
2019-04-19
10:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
169 Views
1 Solution
Accepted Solutions

Master II
2019-04-19
10:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
yes, you can
select checkbox for save output to variable
and use
((String)globalMap.get("tSSH_1_STDOUT"))
169 Views
2 Replies

Master II
2019-04-19
10:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
yes, you can
select checkbox for save output to variable
and use
((String)globalMap.get("tSSH_1_STDOUT"))
170 Views

Anonymous
Not applicable
2019-04-22
03:41 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!!!
169 Views
