# Continuesly reading from flow file

**URL:** https://discourse.mitmproxy.org/t/continuesly-reading-from-flow-file/91
**Category:** help
**Created:** [July 20, 2016, 3:42am UTC](https://discourse.mitmproxy.org/t/continuesly-reading-from-flow-file/91 "2016-07-20T03:42:06Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![pavel-lazar](https://avatars.discourse-cdn.com/v4/letter/p/c89c15/32.png) [@pavel-lazar](https://discourse.mitmproxy.org/u/pavel-lazar)
#### Post date: [July 20, 2016, 3:42am UTC](https://discourse.mitmproxy.org/t/continuesly-reading-from-flow-file/91/1 "2016-07-20T03:42:07Z")

</div>

Hi,

I have a python code which uses frida to hook into an android application’s ssl functions and generates a mitmproxy flow file with all the http flows. The code constantly appends the file with new flows as they are received. I am able to open the file with mitmproxy and work with it interactively but mitmproxy only reads the current state of the file and cannot load new flows(without restarting it). Is there some hack I can do to make mitmproxy read new flows from a single file as they are generated?

Thanks,

---

<div class="post-metadata">

### Author: ![mhils](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mitmproxy.org/mhils/32/7_2.png) [@mhils](https://discourse.mitmproxy.org/u/mhils)
#### Post date: [July 20, 2016, 4:07am UTC](https://discourse.mitmproxy.org/t/continuesly-reading-from-flow-file/91/2 "2016-07-20T04:07:21Z")

</div>

Hi @pavel-lazar,

I personally use the following hack:  
`tail -f -c +0 dump.pcap | mitmdump -n -r -`

Cheers,  
Max

---

<div class="post-metadata">

### Author: ![pavel-lazar](https://avatars.discourse-cdn.com/v4/letter/p/c89c15/32.png) [@pavel-lazar](https://discourse.mitmproxy.org/u/pavel-lazar)
#### Post date: [July 20, 2016, 6:26am UTC](https://discourse.mitmproxy.org/t/continuesly-reading-from-flow-file/91/3 "2016-07-20T06:26:32Z")

</div>

It doesn’t work for me. It gives me No such file or directory.  
mitmdump --version:  
mitmdump 0.17

---

<div class="post-metadata">

### Author: ![mhils](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mitmproxy.org/mhils/32/7_2.png) [@mhils](https://discourse.mitmproxy.org/u/mhils)
#### Post date: [July 20, 2016, 10:56am UTC](https://discourse.mitmproxy.org/t/continuesly-reading-from-flow-file/91/4 "2016-07-20T10:56:32Z")

</div>

Oh, sorry - this is not in 0.17 yet.

---

<div class="post-metadata">

### Author: ![pavel-lazar](https://avatars.discourse-cdn.com/v4/letter/p/c89c15/32.png) [@pavel-lazar](https://discourse.mitmproxy.org/u/pavel-lazar)
#### Post date: [July 20, 2016, 4:21pm UTC](https://discourse.mitmproxy.org/t/continuesly-reading-from-flow-file/91/5 "2016-07-20T16:21:54Z")

</div>

Is it in the master or some other branch?

---

<div class="post-metadata">

### Author: ![mhils](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mitmproxy.org/mhils/32/7_2.png) [@mhils](https://discourse.mitmproxy.org/u/mhils)
#### Post date: [July 20, 2016, 8:46pm UTC](https://discourse.mitmproxy.org/t/continuesly-reading-from-flow-file/91/6 "2016-07-20T20:46:57Z")

</div>

Yes, this is on master and will be part of 0.18. 🙂
