I made a script in bash for getting pings into a file.
#!/bin/sh
echo "Starting script"
echo "Working.."
while true; do
DATE=$(date)
PING=$(ping -c 1 google.pl | tail -1| awk '{print $4}' | cut -d '/' -f 2)
echo "$DATE Ping: $PING" >> logs/ping.txt
sleep 5000
done
But due to lack of free space i changed echo "$DATE Ping: $PING" >> logs/ping.txt
to just echo "$DATE Ping: $PING"
to recive every line in cmd, and it worked
But still the main idea is to run the scipt through the web browser and display its output. (i can run it tho but i have no idea how to show echo output in a browser)