Click here to Skip to main content
15,891,704 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi

Lets say I type the following hypothetical command:

streamcommand.exe parameter1 parameter2

Lets say the above command generates an endless stream of output to STDOUT. How can I pipe this stream to not just one file but a sequence of files, each containing, lets say, five minutes of data?

Thank you very much.

What I have tried:

It is compulsory to fill in the "What have you tried?" box but I don't know what to try.
Posted
Updated 6-Nov-18 3:20am

We have no idea what language you are using, so it is difficult to suggest much. However whichever one it is, take a look at the documentation for File I/O and Date & Time.
 
Share this answer
 
Hi Richard

Thank you very much for your reply.

I have looked at the DOS documentation but I can't see what I am looking for.

Do you know if there is a utility on the Internet in the form of an .exe file which can have STDOUT piped into it and then it saves it into a sequence of files?

Thank you very much.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900