Format output in library

Sep 13, 2011 at 8:03 AM
Edited Sep 13, 2011 at 9:39 AM


How can i format the output which we get from sshcommand.result.

Is there any other method which can give me the same output format which we get while executing a command in Unix.

any help appreciated.

Thanks in advance.



Sep 15, 2011 at 1:43 PM

You get the raw output of the command in the Result property, but how you format it later is up to you and your usage scenario.

If command that you execute on unix can format the output then you need to pass those parameters to this command.




Sep 16, 2011 at 9:25 AM

Thanks Oleg for your prompt response.

Feb 23, 2014 at 8:11 PM
Where exactly do you change the format for the result. I'm outputting SSH from Cisco IOS and its all coming out bunched up and all on one line. Would anyone have any advice on the best way to format/wrap the output from a switch.