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

Automatically save output to file #87

Open
kleutzinger opened this issue Mar 30, 2024 · 2 comments
Open

Automatically save output to file #87

kleutzinger opened this issue Mar 30, 2024 · 2 comments

Comments

@kleutzinger
Copy link

kleutzinger commented Mar 30, 2024

It would be cool if the output was automatically stored somewhere as a file. Maybe using tee to a tempfile of some kind.

Reasoning:
I ran the benchmark over ssh, but then I accidentally disconnected later before I could look over the whole result.

Workaround:
I could have run this instead from the start
curl -sL yabs.sh | bash | tee out.log

but automatically storing the output seems like a sane default to me. Notifying the user where it is stored seems like a good idea too, like

Output stored to /tmp/$date-yabs.log

or something

@masonr
Copy link
Owner

masonr commented Apr 4, 2024

I like the idea of adding an option to write the output to a file. I'll have to ask around and maybe conduct a quick poll to see if having the output write to file as a default is wanted by others as well.

@wolveix
Copy link

wolveix commented Apr 9, 2024

I think it would make more sense to either use a flag for this, or just pipe it out (per your example @kleutzinger). Enabling it by default would lead to orphaned files for most users I suspect

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

3 participants