title: Bash output in web browser
body: <p>I made a script in bash for getting pings into a file.</p>
  
  <pre><code>#!/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" &gt;&gt; logs/ping.txt
      sleep 5000
  done
  </code></pre>
  
  <p>But due to lack of free space i changed <code>echo "$DATE Ping: $PING" &gt;&gt; logs/ping.txt</code> to just <code>echo "$DATE Ping: $PING"</code> to recive every line in cmd, and it worked <img src="https://i.stack.imgur.com/R9tMM.jpg" alt=""></p>
  
  <p>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)</p>