Ping to IP from IVR

I want to ping for a specific IP from IVR I create custom Destination
from-internal-custom,pingtest,1
And I make code for it but not receive any response

[from-internal-custom]

exten => pingtest,1,NoOp(Starting ping test)
 same  => n,Answer()
 same  => n,Wait(1)
 same  => n,Playback(press-2)
 same  => n,WaitExten()

; When user presses 2
exten => 2,1,NoOp(User pressed 2)
 same  => n,System(/bin/ping -c 192.168.2.9 > /tmp/pingresult.txt 2>&1)
 same  => n,NoOp(Ping executed)
 same  => n,Playback(beep)
 same  => n,Hangup()

; Invalid key
exten => i,1,Playback(invalid)
 same  => n,Hangup()

; Timeout
exten => t,1,Playback(vm-goodbye)
 same  => n,Hangup()

make inbound to IVR and test with 7777 code put no action make.

Where is the handling of the results?

@BlazeStudios

I want to store results of ping at /tmp/pingresult.txt

The command is missing a parameter, but that should produce an error message.

@david55 What paramter that missing?

The value of the c option.