# HTML Log for Execute Command stdout truncated

**URL:** <https://forum.robotframework.org/t/html-log-for-execute-command-stdout-truncated/7728>\
**Category:** SSHLibrary\
**Created:** [22 August 2024 11:45 UTC](https://forum.robotframework.org/t/html-log-for-execute-command-stdout-truncated/7728 "2024-08-22T11:45:51Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![camilb](https://avatars.discourse-cdn.com/v4/letter/c/c57346/32.png) [@camilb](https://forum.robotframework.org/u/camilb)\
**Post date:** [22 August 2024 11:51 UTC](https://forum.robotframework.org/t/html-log-for-execute-command-stdout-truncated/7728/2 "2024-08-22T11:51:30Z")

</div>

Just found this:

> [@Obtain the output with robotframework of SSH session](https://forum.robotframework.org/t/obtain-the-output-with-robotframework-of-ssh-session/6115/5):
>
> Hi Carlos, Sorry I made a mistake (That’s what I get for replying to posts at 1am laughing ) You need return\_rc=True not return\_stderr=True Here’s an example: \*\*\* Test Cases \*\*\* Carlos Pitero 1 Open Connection ${IP} Login ${User} ${Password} ${output} ${rc}= Execute Command ifconfig return\_rc=True Log ${rc} IF ${rc} == 0 Log command has been executed with success ELSE Log command failed with error level ${rc} END Log ${output} Close Connection…

I see that Dave has used “Log” to have the output in the html log.  
So i will try to do the same and will add a variable for stdout and then pass this to “Log”.

Br,  
Camil

---

_[View the full topic](https://forum.robotframework.org/t/html-log-for-execute-command-stdout-truncated/7728)._
