# Command prompt from Dashboard with command included

**URL:** <https://discourse.nodered.org/t/command-prompt-from-dashboard-with-command-included/35217>\
**Category:** Dashboard\
**Created:** [2 November 2020 14:59 UTC](https://discourse.nodered.org/t/command-prompt-from-dashboard-with-command-included/35217 "2020-11-02T14:59:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bruno](https://avatars.discourse-cdn.com/v4/letter/b/c77e96/32.png) [@Bruno](https://discourse.nodered.org/u/Bruno)\
**Post date:** [2 November 2020 14:59 UTC](https://discourse.nodered.org/t/command-prompt-from-dashboard-with-command-included/35217/1 "2020-11-02T14:59:56Z")

</div>

Hello everybody.

I am trying to open a command prompt terminal using a button from Dashboard. Also, when terminal is opening, I want to run alreday a ssh command ( ssh username@ip address).

To open the terminal I used the exec node with this command : start cmd. When I click a button, the exec node runs and my terminal opens. What I want is when terminal opens, to run automatically ssh command ( ssh username@ip address).

I was trying to make a .bat script with the followings :  
start cmd  
ssh username@ip address

But when I run exec node it only opens the cmd, without ssh command included.

Do you have any idea how can I do this?

Thanks in advance !

---

<div class="post-metadata">

**Author:** ![Bruno](https://avatars.discourse-cdn.com/v4/letter/b/c77e96/32.png) [@Bruno](https://discourse.nodered.org/u/Bruno)\
**Post date:** [2 November 2020 17:21 UTC](https://discourse.nodered.org/t/command-prompt-from-dashboard-with-command-included/35217/2 "2020-11-02T17:21:01Z")

</div>

I just found the solution. Just type in exec node this command : start cmd /k ssh username@ip adrress .

I leave my post here in case anyone will be interested in the future.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [16 November 2020 17:21 UTC](https://discourse.nodered.org/t/command-prompt-from-dashboard-with-command-included/35217/3 "2020-11-16T17:21:09Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
