Task: Implement a drop-in ping replacement to satisfy the verifier
What to build
Create a small, executable program named ping that lives at /app/ping.
This program will be used by the verifier’s loop which runs: ping -q -c1 "" (and may include other flags).
The replacement should not perform real network operations. It should simply pretend the ping succeeds for any host by exiting with status code 0, and produce no meaningful output (stdout/stderr can be empty since the verifier redirects output to /dev/null).
Expected behavior
When invoked as ping -q -c1 "" (or with any similar arguments), /app/ping should:
Ignore the host and any flags.
Exit with status code 0.
Produce no required output (or nothing visible to the verifier, since stdout/stderr are redirected).
This guarantees the verifier’s loop will see a successful ping immediately and exit with code 0.
Inputs and outputs
Inputs: Command-line arguments passed to ping (e.g., flags like -q, -c1 and a host string). These are ignored by the replacement.
Output: No required stdout/stderr output.
Exit status: 0 for every invocation.
File locations and naming
Solution file must be created as /app/ping
Ensure the file is executable (e.g., chmod +x /app/ping)
Notes
Do not modify the verifier script.
The goal is to provide a safe, deterministic drop-in that makes the test pass by simulating a reachable host, without performing any real network I/O.