# running command from the prompt

**URL:** <https://forum.ansible.com/t/running-command-from-the-prompt/26392>\
**Category:** Ansible Project\
**Created:** [December 29, 2017, 6:25am UTC](https://forum.ansible.com/t/running-command-from-the-prompt/26392 "2017-12-29T06:25:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![coach.rhca](https://avatars.discourse-cdn.com/v4/letter/c/c57346/32.png) [@coach.rhca](https://forum.ansible.com/u/coach.rhca)\
**Post date:** [December 29, 2017, 6:25am UTC](https://forum.ansible.com/t/running-command-from-the-prompt/26392/1 "2017-12-29T06:25:47Z")

</div>

trying to automate few of the step in ansible for jboss …but not sure if this can be achieved in ansible…  
like running ./client -h localhost from the prompt takes it to the jboss console…and running few more command from the jboss console…  
Can we run the command in jboss console using the ansible…

---

<div class="post-metadata">

**Author:** ![coach.rhca](https://avatars.discourse-cdn.com/v4/letter/c/c57346/32.png) [@coach.rhca](https://forum.ansible.com/u/coach.rhca)\
**Post date:** [January 1, 2018, 7:45am UTC](https://forum.ansible.com/t/running-command-from-the-prompt/26392/2 "2018-01-01T07:45:16Z")

</div>

Any idea or thought/insight on how to run osgi command from the jboss console using ansible…

osgi:uninstall jnt-agency-database-info

features: refreshurl

osgi install

osgi: start jnt-agency-database-info
