# Redirecting progress to file

**URL:** <https://pyfr.discourse.group/t/redirecting-progress-to-file/928>\
**Category:** General\
**Created:** [20 September 2023 14:44 UTC](https://pyfr.discourse.group/t/redirecting-progress-to-file/928 "2023-09-20T14:44:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![studyhardhardhard](https://yyz2.discourse-cdn.com/free1/user_avatar/pyfr.discourse.group/studyhardhardhard/32/555_2.png) [@studyhardhardhard](https://pyfr.discourse.group/u/studyhardhardhard)\
**Post date:** [20 September 2023 14:44 UTC](https://pyfr.discourse.group/t/redirecting-progress-to-file/928/1 "2023-09-20T14:44:56Z")

</div>

I have a minor issue: I’m currently running PyFR in the background and saving the output to a file.

When PyFR is running in the foreground, it prints progress updates about every second, reporting both elapsed and estimated remaining time, which is quite useful.

However, when running it in the background like I am, the frequent output makes the saved file quite large, making it hard to open. I end up having to use `tail -f xxx` to check progress.

I’m wondering if there’s a way to adjust the settings so that it prints progress updates approximately every minute instead. I didn’t compile PyFR from source, so I’m not sure if this is feasible.

Best regards.

---

<div class="post-metadata">

**Author:** ![WillT](https://avatars.discourse-cdn.com/v4/letter/w/bc79bd/32.png) [@WillT](https://pyfr.discourse.group/u/WillT)\
**Post date:** [20 September 2023 14:55 UTC](https://pyfr.discourse.group/t/redirecting-progress-to-file/928/2 "2023-09-20T14:55:09Z")

</div>

There is not a ‘mainstream’ way to do this from the terminal, but you can adjust [mindelta](https://github.com/PyFR/PyFR/blob/b7d029154aa833b269ead5c27be35adb25915373/pyfr/progress.py#L30C5-L30C20) on your local version to change the output frequency.

---

<div class="post-metadata">

**Author:** ![studyhardhardhard](https://yyz2.discourse-cdn.com/free1/user_avatar/pyfr.discourse.group/studyhardhardhard/32/555_2.png) [@studyhardhardhard](https://pyfr.discourse.group/u/studyhardhardhard)\
**Post date:** [20 September 2023 15:25 UTC](https://pyfr.discourse.group/t/redirecting-progress-to-file/928/3 "2023-09-20T15:25:24Z")

</div>

Could you tell me which function in which PyFR document I should modify? Also, if I installed PyFR using `pip install` , can changes made directly to the PyFR source code take effect?  
Best regards.

---

<div class="post-metadata">

**Author:** ![WillT](https://avatars.discourse-cdn.com/v4/letter/w/bc79bd/32.png) [@WillT](https://pyfr.discourse.group/u/WillT)\
**Post date:** [20 September 2023 15:28 UTC](https://pyfr.discourse.group/t/redirecting-progress-to-file/928/4 "2023-09-20T15:28:33Z")

</div>

The line you need to change is linked above, and you will need the source code locally. So you will need to clone the current develop branch from github.

---

<div class="post-metadata">

**Author:** ![studyhardhardhard](https://yyz2.discourse-cdn.com/free1/user_avatar/pyfr.discourse.group/studyhardhardhard/32/555_2.png) [@studyhardhardhard](https://pyfr.discourse.group/u/studyhardhardhard)\
**Post date:** [20 September 2023 15:38 UTC](https://pyfr.discourse.group/t/redirecting-progress-to-file/928/5 "2023-09-20T15:38:51Z")

</div>

I apologize for my oversight in not noticing the link.  
So I must download the source code from the latest branch, compile it, and then reinstall my PyFR. I understand, and this might be somewhat cumbersome. I’ll reassess my needs accordingly.  
Thank you for your help.

---

<div class="post-metadata">

**Author:** ![WillT](https://avatars.discourse-cdn.com/v4/letter/w/bc79bd/32.png) [@WillT](https://pyfr.discourse.group/u/WillT)\
**Post date:** [20 September 2023 15:46 UTC](https://pyfr.discourse.group/t/redirecting-progress-to-file/928/6 "2023-09-20T15:46:51Z")

</div>

You should just be able to do:

```bash
$ python3.1x -m venv pyfr_venv
$ cd pyfr_venv
$ . ./bin/activate
$ pip install pyfr
$ pip uninstall pyfr
$ git clone git@github.com:PyFR/PyFR.git
$ pip install -e PyFR

```

---

<div class="post-metadata">

**Author:** ![studyhardhardhard](https://yyz2.discourse-cdn.com/free1/user_avatar/pyfr.discourse.group/studyhardhardhard/32/555_2.png) [@studyhardhardhard](https://pyfr.discourse.group/u/studyhardhardhard)\
**Post date:** [21 September 2023 17:13 UTC](https://pyfr.discourse.group/t/redirecting-progress-to-file/928/7 "2023-09-21T17:13:46Z")

</div>

Thank you, it truly helped me a lot.
