# How to capture the output of riskscape

**URL:** https://community.riskscape.org.nz/t/how-to-capture-the-output-of-riskscape/97
**Category:** Community
**Created:** [24 August 2022 06:33 UTC](https://community.riskscape.org.nz/t/how-to-capture-the-output-of-riskscape/97 "2022-08-24T06:33:50Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![JPowell](https://avatars.discourse-cdn.com/v4/letter/j/bbce88/32.png) [@JPowell](https://community.riskscape.org.nz/u/JPowell)
#### Post date: [24 August 2022 06:33 UTC](https://community.riskscape.org.nz/t/how-to-capture-the-output-of-riskscape/97/1 "2022-08-24T06:33:50Z")

</div>

Is it possible to capture the progress statistics that are output while riskscape is running? ([https://riskscape.org.nz/docs/reference/output/progress.html](https://riskscape.org.nz/docs/reference/output/progress.html))  
I am launching riskscape from inside another process and I would like to display these stats.

I have tried redirecting the output to file using

```auto
riskscape model run basic-exposure >> out.txt 2>&1

```

This stops the progress statistics from being shown on the command line but they do not appear in the file. The location of the final shape file output is shown however.

I know that I can display stats.txt once the run is finished but I would like to use this to monitor progress during the run.

---

<div class="post-metadata">

### Author: ![gspurr](https://avatars.discourse-cdn.com/v4/letter/g/54ee81/32.png) [@gspurr](https://community.riskscape.org.nz/u/gspurr)
#### Post date: [24 August 2022 22:50 UTC](https://community.riskscape.org.nz/t/how-to-capture-the-output-of-riskscape/97/2 "2022-08-24T22:50:09Z")

</div>

The docs says that by default this is output to stats.txt. But you can change the path with `--progress-indicator=[path]`

E.g. `riskscape model run basic-exposure --progress-indicator=out.txt`

---

<div class="post-metadata">

### Author: ![JPowell](https://avatars.discourse-cdn.com/v4/letter/j/bbce88/32.png) [@JPowell](https://community.riskscape.org.nz/u/JPowell)
#### Post date: [24 August 2022 23:33 UTC](https://community.riskscape.org.nz/t/how-to-capture-the-output-of-riskscape/97/3 "2022-08-24T23:33:53Z")

</div>

That works perfectly thanks
