[ipxe-devel] Push request : Adapt Ping command for scripting

cyr-ius cyr-ius at ipocus.net
Sun Oct 19 20:09:24 UTC 2014


I added two new options to the ping command to allow the execution of
the command from a script.

     the counter parameter indicates the number of response to show. If
no argument then control the infinite loop

    the quiet parameter to hide messages on the screen setting.

It is thus possible to script the ping command.
        ping -c 1 -q && echo echo || Link UP DOWN link

example :
	ping (request infinite loop)
	ping -c 2 (request two ping echo)
	ping -c 2 -q (no echo on display)

Is it possible to add these changes to the original code ?

Attachment patch file for GIT.

Cedric Levasseur
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-PING-Scripting.patch
Type: text/x-patch
Size: 6540 bytes
Desc: not available
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20141019/692e9a9e/attachment.bin>

More information about the ipxe-devel mailing list