Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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 .
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.
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.