Discussion Overview
The discussion revolves around how to store ping results into an array or variable using a batch file, with a focus on processing and analyzing the latency results from the ping command. Participants explore various methods, tools, and programming languages that could facilitate this task, including batch scripting, Python, and Perl.
Discussion Character
- Exploratory
- Technical explanation
- Debate/contested
Main Points Raised
- One participant expresses a desire to execute a ping command and store the results for further analysis, including calculating averages and offsets.
- Another participant suggests using network diagnostic tools like traceroute, which may provide more detailed information than ping.
- There is a question about the specific type of batch scripting being discussed, indicating potential confusion about the operating system and scripting language.
- Some participants propose that significant parsing of ping output may not be feasible in batch languages, recommending instead the use of Python for better handling of the output.
- One participant mentions using awk to process ping results, suggesting a method for summing and averaging the data.
- Another participant inquires about executing batch files from other scripting languages and expresses a need for a streamlined, one-click solution for daily use.
- There are suggestions that the Windows Subsystem for Linux could be useful for this task, along with discussions about the capabilities of coreutils versus writing scripts in Python.
- Participants share Perl code snippets that demonstrate how to capture ping results and store them in a CSV format for further analysis.
Areas of Agreement / Disagreement
Participants do not reach a consensus on the best approach to store and analyze ping results. Multiple competing views remain regarding the use of batch files, Python, and Perl, as well as the necessity of using additional tools like awk.
Contextual Notes
Some participants note the limitations of batch scripting for parsing output, while others suggest alternative programming languages that may offer more flexibility. There are also unresolved questions about the execution environment and dependencies on specific tools.