# System command

**URL:** <https://community.gatling.io/t/system-command/218>\
**Category:** Gatling (Open-Source)\
**Created:** [January 9, 2013, 8:12am UTC](https://community.gatling.io/t/system-command/218 "2013-01-09T08:12:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gert\_Jan\_Schipper](https://avatars.discourse-cdn.com/v4/letter/g/73ab20/32.png) [@Gert\_Jan\_Schipper](https://community.gatling.io/u/Gert_Jan_Schipper)\
**Post date:** [January 9, 2013, 8:12am UTC](https://community.gatling.io/t/system-command/218/1 "2013-01-09T08:12:17Z")

</div>

Is there any function or possibility to run a system command in your scala script?

regards,  
Gert Jan

---

<div class="post-metadata">

**Author:** ![Nicolas\_R](https://avatars.discourse-cdn.com/v4/letter/n/f14d63/32.png) [@Nicolas\_R](https://community.gatling.io/u/Nicolas_R)\
**Post date:** [January 9, 2013, 8:28am UTC](https://community.gatling.io/t/system-command/218/2 "2013-01-09T08:28:37Z")

</div>

Hi,

There is indeed a standard API in Java for that : [http://docs.oracle.com/javase/7/docs/api/java/lang/ProcessBuilder.html](http://docs.oracle.com/javase/7/docs/api/java/lang/ProcessBuilder.html)  
Does this work for you ?

cheers  
Nicolas
