#!/usr/bin/env bash cd "$( dirname "${BASH_SOURCE[0]}" )" while :; do sleep 5 & ./queueWorker >> /var/www/html/log.txt wait done