# Running mitmproxy in some "script-only mode"

**URL:** <https://discourse.mitmproxy.org/t/running-mitmproxy-in-some-script-only-mode/747>\
**Category:** help\
**Created:** [December 5, 2017, 1:28am UTC](https://discourse.mitmproxy.org/t/running-mitmproxy-in-some-script-only-mode/747 "2017-12-05T01:28:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tyilo](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mitmproxy.org/tyilo/32/248_2.png) [@Tyilo](https://discourse.mitmproxy.org/u/Tyilo)\
**Post date:** [December 5, 2017, 1:28am UTC](https://discourse.mitmproxy.org/t/running-mitmproxy-in-some-script-only-mode/747/1 "2017-12-05T01:28:51Z")

</div>

I have created a script that modifies some requests/responses which can be used with mitmproxy by running

`mitmproxy -s script.py`

This works perfectly but I was wondering if you could:

1. disable the logging of request/responses (in memory I guess?)
2. disable the TUI

as I only need my script to modify requests/responses and don’t need to manually inspect them,

---

<div class="post-metadata">

**Author:** ![Tyilo](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mitmproxy.org/tyilo/32/248_2.png) [@Tyilo](https://discourse.mitmproxy.org/u/Tyilo)\
**Post date:** [December 5, 2017, 2:04am UTC](https://discourse.mitmproxy.org/t/running-mitmproxy-in-some-script-only-mode/747/2 "2017-12-05T02:04:52Z")

</div>

What I wanted was just `mitmdump -s script.py` 😅
