Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Write progress to file #1

Open
Purple-Tentacle opened this issue Mar 28, 2022 · 1 comment
Open

Feature Request: Write progress to file #1

Purple-Tentacle opened this issue Mar 28, 2022 · 1 comment

Comments

@Purple-Tentacle
Copy link

Purple-Tentacle commented Mar 28, 2022

I want to run CloudChiaPlotter on Linux in the background and write progress to file.

This works like that:
./CloudChiaPlotter -p [ID] -d /home/chris/hdd06/ -b 400 | tee /home/chris/.plot-process > /dev/null &

Problem:
Tee appends output instead of overwriting, I am only interested in the current status.

Request:
An option to write output to file, with an additional option to chose if output should be overwritten or appended.

@anyplots
Copy link
Owner

There is no such plan at present, but you can try to implement it with the following script:

./CloudChiaPlotter ... | tee >(split -d -b 100000 -)
./CloudChiaPlotter ... | split -d -b 100000 -

get the last line: tail -n 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants