yet-another-bench-script icon indicating copy to clipboard operation
yet-another-bench-script copied to clipboard

Automatically save output to file

Open kleutzinger opened this issue 1 year ago • 2 comments
trafficstars

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

kleutzinger avatar Mar 30 '24 00:03 kleutzinger

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.

masonr avatar Apr 04 '24 01:04 masonr

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

wolveix avatar Apr 09 '24 11:04 wolveix