📎 AI Summary:
The user is seeking a way to capture all output—including wget's output—generated by a batch file, but encounters issues because not all commands send their output to standard output. Respondents suggest that some command outputs aren't captured by simple redirection and recommend reading about output redirection techniques. The user clarifies they're analyzing network behavior over time and notes that redirecting wget's output creates multiple files, complicating data collection. Overall, the discussion revolves around troubleshooting output capture in batch scripting, with helpful advice provided, and the user explaining their specific use case.

g2c

Member
Joined
Jun 28, 2014
Messages
33
Thread Author #1
Hello, I would like to save for further processing all the output of a .bat file. This .bat calls wget and if i call the .bat with

>test.bat > test.txt

the .txt file is filled with whatever dos prints to the screen but NOT the output from wget

Thanks in advance for your help
 

g2c

Member
Joined
Jun 28, 2014
Messages
33
Thread Author #4
What are you trying to save from wget?
Thanks for your concern,
I have a misbehavior when accessing a server on an android phone as if the android discards ARPs. I am trying to analyse a long run with random inter-requests idles so as to find a pattern in the failures
 

g2c

Member
Joined
Jun 28, 2014
Messages
33
Thread Author #5
That's because not all commands send their output to Standard Output.
if i ask wget to output to a file, i'll end up with two files: the batch output with some variables such as the loop counter on one hand and the wget output on the other.