# Is it possible to launch an exterior script or program at a specific step ?

**URL:** <https://community.ofelia.com/t/is-it-possible-to-launch-an-exterior-script-or-program-at-a-specific-step/6663>\
**Category:** Q&A\
**Created:** [11 November 2015 19:11 UTC](https://community.ofelia.com/t/is-it-possible-to-launch-an-exterior-script-or-program-at-a-specific-step/6663 "2015-11-11T19:11:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cyril.geneste](https://avatars.discourse-cdn.com/v4/letter/c/ed8c4c/32.png) [@cyril.geneste](https://community.ofelia.com/u/cyril.geneste)\
**Post date:** [11 November 2015 19:11 UTC](https://community.ofelia.com/t/is-it-possible-to-launch-an-exterior-script-or-program-at-a-specific-step/6663/1 "2015-11-11T19:11:44Z")

</div>

Hello everyone,

I’m discovering Bonita BPM…  
Do you know if it is possible to launch an exterior script or program (on windows for example) ?  
For example, I would like to launch a .bat file (DOS script) or .exe file at a specific step of my process.

Thanks in advance !  
Best Regards

Cyril

---

<div class="post-metadata">

**Author:** ![Sean\_McP](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/sean_mcp/32/932_2.png) [@Sean\_McP](https://community.ofelia.com/u/Sean_McP)\
**Post date:** [12 November 2015 02:48 UTC](https://community.ofelia.com/t/is-it-possible-to-launch-an-exterior-script-or-program-at-a-specific-step/6663/2 "2015-11-12T02:48:37Z")

</div>

Yes it is possible,

use a Script Connector → System Script.

Here you can run all the system commands (based on privileges of course)

regards

---

<div class="post-metadata">

**Author:** ![cyril.geneste](https://avatars.discourse-cdn.com/v4/letter/c/ed8c4c/32.png) [@cyril.geneste](https://community.ofelia.com/u/cyril.geneste)\
**Post date:** [12 November 2015 11:06 UTC](https://community.ofelia.com/t/is-it-possible-to-launch-an-exterior-script-or-program-at-a-specific-step/6663/3 "2015-11-12T11:06:40Z")

</div>

Hello Sean McP

Thanks for your answer, it works ! (on the task, sheet “Execution, Connectors out, Add, category Script, System Script”).  
This is thus for a local system command.

Has Bonita a specific option so as to execute easily a distant system command ?  
For example, my Bonita is installed in my PC and I have an access to a Linux Server (with a graphical emulator, or a text emulator such as Putty), in which i work in a BASH mode. Then, I would like to run bash commands on my Linux Server. Is it possible too ?

Thanks again.  
Best Regards

Cyril

---

<div class="post-metadata">

**Author:** ![claz08](https://avatars.discourse-cdn.com/v4/letter/c/5e9695/32.png) [@claz08](https://community.ofelia.com/u/claz08)\
**Post date:** [11 November 2015 20:08 UTC](https://community.ofelia.com/t/is-it-possible-to-launch-an-exterior-script-or-program-at-a-specific-step/6663/4 "2015-11-11T20:08:41Z")

</div>

I’m looking for the same.Somebody has any idea!1

---

<div class="post-metadata">

**Author:** ![Sean\_McP](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/sean_mcp/32/932_2.png) [@Sean\_McP](https://community.ofelia.com/u/Sean_McP)\
**Post date:** [18 November 2015 07:27 UTC](https://community.ofelia.com/t/is-it-possible-to-launch-an-exterior-script-or-program-at-a-specific-step/6663/5 "2015-11-18T07:27:48Z")

</div>

From a strictly security perspective, no. This would not be part of Bonitasoft.

You could do it by having a script as follows

process executes scripta.vbs

scripta.vbs (for example) goes and does this:

[http://stackoverflow.com/questions/7013137/automating-telnet-session-using-bash-scripts](http://stackoverflow.com/questions/7013137/automating-telnet-session-using-bash-scripts)  
[http://stackoverflow.com/questions/709801/creating-a-script-for-a-telnet-session](http://stackoverflow.com/questions/709801/creating-a-script-for-a-telnet-session)

this one has a full script type of thing…

[http://ccm.net/forum/affich-37067-shell-script-to-telnet-and-run-commands](http://ccm.net/forum/affich-37067-shell-script-to-telnet-and-run-commands)

Note: many answers also suggest you use SSL - I’ll leve this for you to investigate,

Hope the above helps,  
regards  
Sean
