#!/bin/bash while [ true ] do php /var/www/html/kmeansprepare.php rm bigplot.jpg cat my.sh | R --vanilla python3 kmeans.py sleep 3h done